aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-13 11:54:31 +0100
committerBjörn Gustavsson <[email protected]>2013-02-13 11:57:17 +0100
commite96b2bc546b13a30707479838f1a5891147a5603 (patch)
treeca837dc672a87ad334fff45dfdd5be73912830b7 /lib/stdlib/test
parent03b7c52a75c4af8d33b6b2a13bf7697709d3f6a3 (diff)
downloadotp-e96b2bc546b13a30707479838f1a5891147a5603.tar.gz
otp-e96b2bc546b13a30707479838f1a5891147a5603.tar.bz2
otp-e96b2bc546b13a30707479838f1a5891147a5603.zip
Don't allow binaries as the Cwd argument for filelib:wildcard()
filelib:wildcard() will no longer support "raw filenames", so it makes no sense for it to accept a binary Cwd argument.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/filelib_SUITE.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/stdlib/test/filelib_SUITE.erl b/lib/stdlib/test/filelib_SUITE.erl
index 2ef2b2bcaa..4a67d68428 100644
--- a/lib/stdlib/test/filelib_SUITE.erl
+++ b/lib/stdlib/test/filelib_SUITE.erl
@@ -83,11 +83,8 @@ wildcard_one(Config) when is_list(Config) ->
wildcard_two(Config) when is_list(Config) ->
?line Dir = filename:join(?config(priv_dir, Config), "wildcard_two"),
- ?line DirB = unicode:characters_to_binary(Dir, file:native_name_encoding()),
?line ok = file:make_dir(Dir),
?line do_wildcard_1(Dir, fun(Wc) -> io:format("~p~n",[{Wc,Dir, X = filelib:wildcard(Wc, Dir)}]),X end),
- ?line do_wildcard_1(Dir, fun(Wc) -> io:format("~p~n",[{Wc,DirB, X = filelib:wildcard(Wc, DirB)}]),
- [unicode:characters_to_list(Y,file:native_name_encoding()) || Y <- X] end),
?line do_wildcard_1(Dir, fun(Wc) -> filelib:wildcard(Wc, Dir++"/") end),
case os:type() of
{win32,_} ->