diff options
author | Björn Gustavsson <[email protected]> | 2016-02-25 15:28:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-02-25 15:53:34 +0100 |
commit | 117daae14c7779a35659589a842af331fe773d6a (patch) | |
tree | 3bfad44a47bde966e7dbf3f49d739c049e2b01f9 /lib/compiler/test/warnings_SUITE.erl | |
parent | ca93ccf62e91c55345eb1e67e6ea107ba72e5a1f (diff) | |
download | otp-117daae14c7779a35659589a842af331fe773d6a.tar.gz otp-117daae14c7779a35659589a842af331fe773d6a.tar.bz2 otp-117daae14c7779a35659589a842af331fe773d6a.zip |
Eliminate use of test_server:fail/0,1
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r-- | lib/compiler/test/warnings_SUITE.erl | 5 |
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). |