diff options
author | Björn Gustavsson <[email protected]> | 2016-02-25 15:28:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-09 12:08:35 +0100 |
commit | ec35c6439d3707801c7527dd2ea01ef0aa0421ed (patch) | |
tree | 9c181cd70558e60a0be3109d6242f7aa2b1cb822 /lib/stdlib/test/log_mf_h_SUITE.erl | |
parent | db87ef023f4660fd2129f30dbbff05e73bff3dd5 (diff) | |
download | otp-ec35c6439d3707801c7527dd2ea01ef0aa0421ed.tar.gz otp-ec35c6439d3707801c7527dd2ea01ef0aa0421ed.tar.bz2 otp-ec35c6439d3707801c7527dd2ea01ef0aa0421ed.zip |
Eliminate use of test_server:fail/0,1
Diffstat (limited to 'lib/stdlib/test/log_mf_h_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/log_mf_h_SUITE.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/stdlib/test/log_mf_h_SUITE.erl b/lib/stdlib/test/log_mf_h_SUITE.erl index 70d03dd46f..8c5aa3d59b 100644 --- a/lib/stdlib/test/log_mf_h_SUITE.erl +++ b/lib/stdlib/test/log_mf_h_SUITE.erl @@ -77,14 +77,14 @@ test(Config) when is_list(Config) -> ?line false = lists:member("4", Files2), ?line true = lists:member("index", Files2), ?line {ok, #file_info{size=Size1,type=regular}} = file:read_file_info(Log1 ++ "/1"), - ?line if Size1 > 500 -> test_server:fail({too_big, Size1}); - true -> ok end, + if Size1 > 500 -> ct:fail({too_big, Size1}); + true -> ok end, ?line {ok, #file_info{size=Size2,type=regular}} = file:read_file_info(Log1 ++ "/2"), - ?line if Size2 > 500 -> test_server:fail({too_big, Size2}); - true -> ok end, + if Size2 > 500 -> ct:fail({too_big, Size2}); + true -> ok end, ?line {ok, #file_info{size=Size3,type=regular}} = file:read_file_info(Log1 ++ "/3"), - ?line if Size3 > 500 -> test_server:fail({too_big, Size3}); - true -> ok end, + if Size3 > 500 -> ct:fail({too_big, Size3}); + true -> ok end, gen_event:delete_handler(Pid, log_mf_h, []), ?line {ok, Index} = read_index_file(Log1), gen_event:add_handler(Pid, log_mf_h, Args1), |