diff options
author | Björn Gustavsson <[email protected]> | 2016-04-18 08:14:19 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-18 08:14:19 +0200 |
commit | 575c1d99d37e541d802c51a62326b6faa3cffbf1 (patch) | |
tree | 7174e0f94d00bda30c719ee69d20b49bc8bf1178 /lib/debugger/test/record_SUITE.erl | |
parent | 26c6f622ce12e865a229b51ff503f852df56d82d (diff) | |
download | otp-575c1d99d37e541d802c51a62326b6faa3cffbf1.tar.gz otp-575c1d99d37e541d802c51a62326b6faa3cffbf1.tar.bz2 otp-575c1d99d37e541d802c51a62326b6faa3cffbf1.zip |
Eliminate use of test_server:fail/{0,1}
Diffstat (limited to 'lib/debugger/test/record_SUITE.erl')
-rw-r--r-- | lib/debugger/test/record_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debugger/test/record_SUITE.erl b/lib/debugger/test/record_SUITE.erl index 8e01630e10..a045f6d529 100644 --- a/lib/debugger/test/record_SUITE.erl +++ b/lib/debugger/test/record_SUITE.erl @@ -118,8 +118,8 @@ update_foo_barf(#foo{}=R, A, _B, C, D, E) -> R#barf{a=A,b=A,c=C,d=D,e=E}. --define(TrueGuard(Expr), if Expr -> ok; true -> ?t:fail() end). --define(FalseGuard(Expr), if Expr -> ?t:fail(); true -> ok end). +-define(TrueGuard(Expr), if Expr -> ok; true -> ct:fail(failed) end). +-define(FalseGuard(Expr), if Expr -> ct:fail(failed); true -> ok end). record_test(Config) when is_list(Config) -> ?line true = is_record(#foo{}, foo), @@ -259,7 +259,7 @@ once(Test, Record) -> 1 -> ok; N -> io:format("Evaluated ~w times\n", [N]), - ?t:fail() + ct:fail(failed) end, Result. |