Browse Source

fix `reset_dir` test suite for r15x

swap `file:list_dir` for `file:list_dir_all` due to nonexistence of latter prior to r16x
pull/101/head
alisdair sullivan 10 years ago
parent
commit
f94108e164
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/rebar_file_utils_SUITE.erl

+ 3
- 3
test/rebar_file_utils_SUITE.erl View File

@ -61,7 +61,7 @@ reset_nonexistent_dir(Config) ->
?assertNot(filelib:is_dir(TmpDir)),
ok = rebar_file_utils:reset_dir(TmpDir),
?assert(filelib:is_dir(TmpDir)),
{ok, []} = file:list_dir_all(TmpDir).
{ok, []} = file:list_dir(TmpDir).
reset_empty_dir(Config) ->
TmpDir = ?config(tmpdir, Config),
@ -70,7 +70,7 @@ reset_empty_dir(Config) ->
?assert(filelib:is_dir(TmpDir)),
ok = rebar_file_utils:reset_dir(TmpDir),
?assert(filelib:is_dir(TmpDir)),
{ok, []} = file:list_dir_all(TmpDir).
{ok, []} = file:list_dir(TmpDir).
reset_dir(Config) ->
TmpDir = ?config(tmpdir, Config),
@ -83,4 +83,4 @@ reset_dir(Config) ->
["a", "b", "c"]),
ok = rebar_file_utils:reset_dir(TmpDir),
?assert(filelib:is_dir(TmpDir)),
{ok, []} = file:list_dir_all(TmpDir).
{ok, []} = file:list_dir(TmpDir).

Loading…
Cancel
Save