diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-07-11 18:44:48 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-07-11 18:44:48 +0200 |
commit | 990e60f120165abb4bfe563073ff35761b467a50 (patch) | |
tree | 4557f35d7dc256854f6f6847a8aa1aa11a989721 | |
parent | 8cae8b3430c8b2149257283dbd7b710fa09cb059 (diff) |
Use filename:join
-rw-r--r-- | src/rebar_eunit.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index b966985..dcc46a1 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -65,9 +65,9 @@ %% =================================================================== eunit(Config, _AppFile) -> - %% Make sure ?EUNIT_DIR/ and ebin/ directory exists (tack on dummy module) - ok = filelib:ensure_dir(eunit_dir() ++ "/foo"), - ok = filelib:ensure_dir(ebin_dir() ++ "/foo"), + %% Make sure ?EUNIT_DIR/ and ebin/ directory exists (append dummy module) + ok = filelib:ensure_dir(filename:join(eunit_dir(), "dummy")), + ok = filelib:ensure_dir(filename:join(ebin_dir(), "dummy")), %% Setup code path prior to compilation so that parse_transforms %% and the like work properly. Also, be sure to add ebin_dir() |