diff options
author | Björn-Egil Dahlberg <[email protected]> | 2013-02-21 15:41:29 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2013-07-15 19:03:10 +0200 |
commit | 98d03e9cf84b8670afaaa450d8e9bae8e303437c (patch) | |
tree | 2fcb6bb1440fae9e47581c30593d48b6b1fbd903 | |
parent | 4e82946f3096faad3e804b31810e49e7e115b6ea (diff) | |
download | otp-98d03e9cf84b8670afaaa450d8e9bae8e303437c.tar.gz otp-98d03e9cf84b8670afaaa450d8e9bae8e303437c.tar.bz2 otp-98d03e9cf84b8670afaaa450d8e9bae8e303437c.zip |
tests: Refactor away ?line macro
-rw-r--r-- | erts/emulator/test/receive_SUITE.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/erts/emulator/test/receive_SUITE.erl b/erts/emulator/test/receive_SUITE.erl index b8cf8a4abc..2e7ac1f50c 100644 --- a/erts/emulator/test/receive_SUITE.erl +++ b/erts/emulator/test/receive_SUITE.erl @@ -59,14 +59,14 @@ end_per_testcase(_Func, Config) -> ?t:timetrap_cancel(Dog). call_with_huge_message_queue(Config) when is_list(Config) -> - ?line Pid = spawn_link(fun echo_loop/0), + Pid = spawn_link(fun echo_loop/0), - ?line {Time,ok} = tc(fun() -> calls(10, Pid) end), + {Time,ok} = tc(fun() -> calls(10, Pid) end), - ?line [self() ! {msg,N} || N <- lists:seq(1, 500000)], + [self() ! {msg,N} || N <- lists:seq(1, 500000)], erlang:garbage_collect(), - ?line {NewTime1,ok} = tc(fun() -> calls(10, Pid) end), - ?line {NewTime2,ok} = tc(fun() -> calls(10, Pid) end), + {NewTime1,ok} = tc(fun() -> calls(10, Pid) end), + {NewTime2,ok} = tc(fun() -> calls(10, Pid) end), io:format("Time for empty message queue: ~p", [Time]), io:format("Time1 for huge message queue: ~p", [NewTime1]), @@ -77,7 +77,7 @@ call_with_huge_message_queue(Config) when is_list(Config) -> ok; Q -> io:format("Best Q = ~p", [Q]), - ?line ?t:fail() + ?t:fail() end, ok. @@ -98,8 +98,8 @@ call(Pid, Msg) -> end. receive_in_between(Config) when is_list(Config) -> - ?line Pid = spawn_link(fun echo_loop/0), - ?line [{ok,{a,b}} = call2(Pid, {a,b}) || _ <- lists:seq(1, 100000)], + Pid = spawn_link(fun echo_loop/0), + [{ok,{a,b}} = call2(Pid, {a,b}) || _ <- lists:seq(1, 100000)], ok. call2(Pid, Msg) -> |