diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-01-18 22:38:08 -0800 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-01-18 22:38:08 -0800 |
commit | f94108e1641d22b66e236e7c29638e5e0f2452ab (patch) | |
tree | 5d231cfef7051de150995d6376b07d55ca1f1dee | |
parent | 00e03d70efa697bcd6cba53d62efc461035a4d82 (diff) |
fix `reset_dir` test suite for r15x
swap `file:list_dir` for `file:list_dir_all` due to nonexistence of latter prior to r16x
-rw-r--r-- | test/rebar_file_utils_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
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). |