From 990e60f120165abb4bfe563073ff35761b467a50 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 11 Jul 2012 18:44:48 +0200 Subject: Use filename:join --- src/rebar_eunit.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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() -- cgit v1.1