aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-01-17 11:47:45 +0100
committerBjörn Gustavsson <[email protected]>2018-01-17 11:47:45 +0100
commita2f97956b21acdb345a188b174a4108959a1c1cd (patch)
tree57aa5536cd2978f218d450923407e48ffdc84871 /lib/asn1/test
parentd0ce7f1189bc4ac5d14e6cd927ecbd59a2e60432 (diff)
downloadotp-a2f97956b21acdb345a188b174a4108959a1c1cd.tar.gz
otp-a2f97956b21acdb345a188b174a4108959a1c1cd.tar.bz2
otp-a2f97956b21acdb345a188b174a4108959a1c1cd.zip
asn1_SUITE: Fix failure in xref_export_all/1
The variable 'S' was used twice. If the test case failed because there were unused functions in asn1_SUITE, there would be an ugly badmatch exception instead of the intended nice error message.
Diffstat (limited to 'lib/asn1/test')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl
index b98a704e28..bfeffa969f 100644
--- a/lib/asn1/test/asn1_SUITE.erl
+++ b/lib/asn1/test/asn1_SUITE.erl
@@ -1355,8 +1355,8 @@ xref_export_all(_Config) ->
[] ->
ok;
[_|_] ->
- S = [io_lib:format("~p:~p/~p\n", [M,F,A]) || {M,F,A} <- Unused],
- io:format("There are unused functions:\n\n~s\n", [S]),
+ Msg = [io_lib:format("~p:~p/~p\n", [M,F,A]) || {M,F,A} <- Unused],
+ io:format("There are unused functions:\n\n~s\n", [Msg]),
?t:fail(unused_functions)
end.