aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/warnings_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index 1d62496044..af32ed79fa 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -340,7 +340,7 @@ bad_apply(Config) when is_list(Config) ->
%% Also verify that the generated code generates the correct error.
?line try erlang:42() of
- _ -> ?line ?t:fail()
+ _ -> ct:fail(should_fail)
catch
error:badarg -> ok
end,
@@ -830,5 +830,4 @@ run_test(Conf, Test0, Warnings) ->
Res.
fail() ->
- io:format("failed~n"),
- ?t:fail().
+ ct:fail(failed).