aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/xref_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-08-23 08:50:10 +0200
committerHans Bolinder <[email protected]>2012-08-23 08:50:10 +0200
commite479ebeb58beaa8261fa90e54681dc30e5ee3085 (patch)
tree23acb7b978672c6e5df27637a7eb6d6a693001a6 /lib/tools/test/xref_SUITE.erl
parent533946d9e26034b709c03072645aabafff6a2be2 (diff)
parent6ab59ee359373043f0bb5950b63d7590cd54a3f9 (diff)
downloadotp-e479ebeb58beaa8261fa90e54681dc30e5ee3085.tar.gz
otp-e479ebeb58beaa8261fa90e54681dc30e5ee3085.tar.bz2
otp-e479ebeb58beaa8261fa90e54681dc30e5ee3085.zip
Merge branch 'hb/tools/xref_filenames/OTP-10192' into maint
* hb/tools/xref_filenames/OTP-10192: Allow non-ASCII characters in Xref filanmes
Diffstat (limited to 'lib/tools/test/xref_SUITE.erl')
-rw-r--r--lib/tools/test/xref_SUITE.erl16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/tools/test/xref_SUITE.erl b/lib/tools/test/xref_SUITE.erl
index 78e49044a5..fd3e111d8d 100644
--- a/lib/tools/test/xref_SUITE.erl
+++ b/lib/tools/test/xref_SUITE.erl
@@ -53,7 +53,7 @@
analyze/1, basic/1, md/1, q/1, variables/1, unused_locals/1]).
-export([
- format_error/1, otp_7423/1, otp_7831/1]).
+ format_error/1, otp_7423/1, otp_7831/1, otp_10192/1]).
-import(lists, [append/2, flatten/1, keysearch/3, member/2, sort/1, usort/1]).
@@ -86,7 +86,7 @@ groups() ->
fun_mfa_r14, fun_mfa_vars, qlc]},
{analyses, [],
[analyze, basic, md, q, variables, unused_locals]},
- {misc, [], [format_error, otp_7423, otp_7831]}].
+ {misc, [], [format_error, otp_7423, otp_7831, otp_10192]}].
init_per_suite(Config) ->
init(Config).
@@ -2515,6 +2515,18 @@ otp_7831(Conf) when is_list(Conf) ->
?line xref:stop(Pid2),
ok.
+otp_10192(suite) -> [];
+otp_10192(doc) ->
+ ["OTP-10192. Allow filenames with character codes greater than 126."];
+otp_10192(Conf) when is_list(Conf) ->
+ PrivDir = ?privdir,
+ {ok, _Pid} = xref:start(s),
+ Dir = filename:join(PrivDir, "�"),
+ ok = file:make_dir(Dir),
+ {ok, []} = xref:add_directory(s, Dir),
+ xref:stop(s),
+ ok.
+
%%%
%%% Utilities
%%%