aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/erl_drv_thread_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-03-08 21:01:40 +0100
committerBjörn-Egil Dahlberg <[email protected]>2016-03-11 15:43:11 +0100
commit9b6b82abfaae479849902ba60c4c54a526840a03 (patch)
tree4e96855cb8ab6bea70bca7f46c4ab1fdbd72a618 /erts/emulator/test/erl_drv_thread_SUITE.erl
parentc062dfc485ad0d51d648701950f77ef8f51d4f35 (diff)
downloadotp-9b6b82abfaae479849902ba60c4c54a526840a03.tar.gz
otp-9b6b82abfaae479849902ba60c4c54a526840a03.tar.bz2
otp-9b6b82abfaae479849902ba60c4c54a526840a03.zip
Eliminate use of test_server:fail/0,1
Diffstat (limited to 'erts/emulator/test/erl_drv_thread_SUITE.erl')
-rw-r--r--erts/emulator/test/erl_drv_thread_SUITE.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/erts/emulator/test/erl_drv_thread_SUITE.erl b/erts/emulator/test/erl_drv_thread_SUITE.erl
index a56741adc6..3497760515 100644
--- a/erts/emulator/test/erl_drv_thread_SUITE.erl
+++ b/erts/emulator/test/erl_drv_thread_SUITE.erl
@@ -86,8 +86,7 @@ run_drv_case(Config, CaseName, Command, TimeTrap) ->
case erl_ddll:load_driver(DataDir, CaseName) of
ok -> ok;
{error, Error} ->
- io:format("~s\n", [erl_ddll:format_error(Error)]),
- ?line ?t:fail()
+ ct:fail(erl_ddll:format_error(Error))
end,
?line Port = open_port({spawn, atom_to_list(CaseName)}, []),
?line true = is_port(Port),
@@ -107,11 +106,11 @@ receive_drv_result(Port, CaseName) ->
?line ?t:format("~s", [Str]),
?line receive_drv_result(Port, CaseName);
{'EXIT', Port, Error} ->
- ?line ?t:fail(Error);
+ ?line ct:fail(Error);
{'EXIT', error, Error} ->
- ?line ?t:fail(Error);
+ ?line ct:fail(Error);
{failed, Port, CaseName, Comment} ->
- ?line ?t:fail(Comment);
+ ?line ct:fail(Comment);
{skipped, Port, CaseName, Comment} ->
?line {skipped, Comment};
{succeeded, Port, CaseName, ""} ->