From 117daae14c7779a35659589a842af331fe773d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Thu, 25 Feb 2016 15:28:25 +0100 Subject: Eliminate use of test_server:fail/0,1 --- lib/compiler/test/warnings_SUITE.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/compiler/test/warnings_SUITE.erl') 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). -- cgit v1.2.3