diff options
author | Björn Gustavsson <[email protected]> | 2016-02-25 07:38:39 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-02-25 14:49:49 +0100 |
commit | 5fe95cec32ddc92f6a483c24f6f591586ba065f7 (patch) | |
tree | a5363e6e4a9ad07656db97db377f9975fcc3d05c /lib/compiler/test/inline_SUITE.erl | |
parent | 720ad8d62a908fa52ed2dcd34f30a01a940b2022 (diff) | |
download | otp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.tar.gz otp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.tar.bz2 otp-5fe95cec32ddc92f6a483c24f6f591586ba065f7.zip |
Modernize use of timetraps
Either rely on the default 30 minutes timetrap, or set the timeout
using the supported methods in common_test.
Diffstat (limited to 'lib/compiler/test/inline_SUITE.erl')
-rw-r--r-- | lib/compiler/test/inline_SUITE.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/compiler/test/inline_SUITE.erl b/lib/compiler/test/inline_SUITE.erl index f28e1e5a25..77a58dff34 100644 --- a/lib/compiler/test/inline_SUITE.erl +++ b/lib/compiler/test/inline_SUITE.erl @@ -97,9 +97,8 @@ try_inline(Mod, Config) -> ?line io:format("Compiling: ~s\n", [Src]), ?line {ok,Mod} = compile:file(Src, [{outdir,Out},report,bin_opt_info,clint]), - ?line Dog = test_server:timetrap(test_server:minutes(10)), + ct:timetrap({minutes,10}), ?line NormalResult = rpc:call(Node, ?MODULE, load_and_call, [Out,Mod]), - ?line test_server:timetrap_cancel(Dog), %% Inlining. ?line io:format("Compiling with old inliner: ~s\n", [Src]), @@ -107,9 +106,8 @@ try_inline(Mod, Config) -> {inline,1000},clint]), %% Run inlined code. - ?line Dog3 = test_server:timetrap(test_server:minutes(10)), + ct:timetrap({minutes,10}), ?line OldInlinedResult = rpc:call(Node, ?MODULE, load_and_call, [Out,Mod]), - ?line test_server:timetrap_cancel(Dog3), %% Compare results. ?line compare(NormalResult, OldInlinedResult), @@ -121,9 +119,8 @@ try_inline(Mod, Config) -> bin_opt_info,inline,clint]), %% Run inlined code. - ?line Dog4 = test_server:timetrap(test_server:minutes(10)), + ct:timetrap({minutes,10}), ?line InlinedResult = rpc:call(Node, ?MODULE, load_and_call, [Out,Mod]), - ?line test_server:timetrap_cancel(Dog4), %% Compare results. ?line compare(NormalResult, InlinedResult), |