diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-04-07 14:40:42 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-04-07 14:40:42 +0200 |
commit | a5fd45224765c2e06dd5bb3b2e0548bc747f042a (patch) | |
tree | feee7f5c039aacd616b9c1a66fb6c61a542f9bc6 /lib/tools | |
parent | 01fe845129658f3c1718849dc1b789570234a674 (diff) | |
download | otp-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')
-rw-r--r-- | lib/tools/test/emem_SUITE.erl | 17 |
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). |