From f94108e1641d22b66e236e7c29638e5e0f2452ab Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Sun, 18 Jan 2015 22:38:08 -0800 Subject: fix `reset_dir` test suite for r15x swap `file:list_dir` for `file:list_dir_all` due to nonexistence of latter prior to r16x --- test/rebar_file_utils_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/rebar_file_utils_SUITE.erl b/test/rebar_file_utils_SUITE.erl index 67926de..03a2d54 100644 --- a/test/rebar_file_utils_SUITE.erl +++ b/test/rebar_file_utils_SUITE.erl @@ -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). -- cgit v1.1