Use eunit_dir() instead of ?EUNIT_DIR since the function exists.

The eunit_dir() does use the ?EUNIT_DIR macro internally, but it also builds, what I guess is, an absolute path, which might be better :) At least it's more consistent.
This commit is contained in:
Oscar Hellström 2010-08-24 21:59:59 +02:00
parent 8c03d5959b
commit 8ea62597ff

View file

@ -75,7 +75,7 @@ eunit(Config, AppFile) ->
end, end,
%% Make sure ?EUNIT_DIR/ and ebin/ directory exists (tack on dummy module) %% Make sure ?EUNIT_DIR/ and ebin/ directory exists (tack on dummy module)
ok = filelib:ensure_dir(?EUNIT_DIR ++ "/foo"), ok = filelib:ensure_dir(eunit_dir() ++ "/foo"),
ok = filelib:ensure_dir(ebin_dir() ++ "/foo"), ok = filelib:ensure_dir(ebin_dir() ++ "/foo"),
%% Setup code path prior to compilation so that parse_transforms and the like %% Setup code path prior to compilation so that parse_transforms and the like