From c9f6f5b9c20ada3dfa1e682cf49c09e3311db248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Wed, 6 Apr 2016 20:18:57 +0200 Subject: Eliminate use of test_server:fail/0,1 --- lib/tools/test/emem_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/tools/test/emem_SUITE.erl') diff --git a/lib/tools/test/emem_SUITE.erl b/lib/tools/test/emem_SUITE.erl index ddd11b6a22..2533a23dcc 100644 --- a/lib/tools/test/emem_SUITE.erl +++ b/lib/tools/test/emem_SUITE.erl @@ -512,7 +512,7 @@ run_emem_on_casefile(Config) -> File = filename:join([?config(data_dir, Config), CaseName ++ ".gz"]), case check_file(File) of not_found -> - ?t:fail({error, {filenotfound, File}}); + ct:fail({error, {filenotfound, File}}); _ -> ok end, @@ -621,12 +621,12 @@ start_emem(Config) when is_list(Config) -> case open_port({spawn, Emem ++ " -t -n -o -i 1"}, Cd ++ [{line, 1024}, eof]) of Port when is_port(Port) -> {ok, read_emu_flag(Port), Port}; - Error -> ?t:fail(Error) + Error -> ct:fail(Error) end. read_emu_flag(Port) -> Line = case get_emem_line(Port) of - eof -> ?t:fail(unexpected_end_of_file); + eof -> ct:fail(unexpected_end_of_file); L -> L end, case has_prefix("> Emulator command line argument:", Line) of -- cgit v1.2.3