aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/emem_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-04-07 14:40:42 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-04-07 14:40:42 +0200
commita5fd45224765c2e06dd5bb3b2e0548bc747f042a (patch)
treefeee7f5c039aacd616b9c1a66fb6c61a542f9bc6 /lib/tools/test/emem_SUITE.erl
parent01fe845129658f3c1718849dc1b789570234a674 (diff)
downloadotp-a5fd45224765c2e06dd5bb3b2e0548bc747f042a.tar.gz
otp-a5fd45224765c2e06dd5bb3b2e0548bc747f042a.tar.bz2
otp-a5fd45224765c2e06dd5bb3b2e0548bc747f042a.zip
Use test_server:is_debug/0 instead of custom check
Diffstat (limited to 'lib/tools/test/emem_SUITE.erl')
-rw-r--r--lib/tools/test/emem_SUITE.erl17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/tools/test/emem_SUITE.erl b/lib/tools/test/emem_SUITE.erl
index 2532c5003e..c3f8f1fa04 100644
--- a/lib/tools/test/emem_SUITE.erl
+++ b/lib/tools/test/emem_SUITE.erl
@@ -63,7 +63,7 @@ suite() ->
{timetrap,{minutes,5}}].
all() ->
- case is_debug_compiled() of
+ case test_server:is_debug() of
true -> {skip, "Not run when debug compiled"};
false -> test_cases()
end.
@@ -678,18 +678,3 @@ mk_nodename(Config) ->
start_node(Name, Args) ->
Pa = filename:dirname(code:which(?MODULE)),
?t:start_node(Name, peer, [{args, Args ++ " -pa " ++ Pa}]).
-
-% stop_node(Node) ->
-% ?t:stop_node(Node).
-
-is_debug_compiled() ->
- is_debug_compiled(erlang:system_info(system_version)).
-
-is_debug_compiled([$d,$e,$b,$u,$g | _]) ->
- true;
-is_debug_compiled([ _, _, _, _]) ->
- false;
-is_debug_compiled([]) ->
- false;
-is_debug_compiled([_|Rest]) ->
- is_debug_compiled(Rest).