aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2015-04-16 14:30:55 +0200
committerBjörn Gustavsson <[email protected]>2015-05-07 14:40:32 +0200
commitfc1029c74093fde14241ca664c9341fcc8be5fd3 (patch)
tree7cd45bce86771c145f0191cb5430b08021d34cd7 /lib/test_server/src
parent39ce03094edb3bc53ad671636355be53564a222d (diff)
downloadotp-fc1029c74093fde14241ca664c9341fcc8be5fd3.tar.gz
otp-fc1029c74093fde14241ca664c9341fcc8be5fd3.tar.bz2
otp-fc1029c74093fde14241ca664c9341fcc8be5fd3.zip
Add module_info entry for native code
Diffstat (limited to 'lib/test_server/src')
-rw-r--r--lib/test_server/src/test_server.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/test_server/src/test_server.erl b/lib/test_server/src/test_server.erl
index 7cb9c4bb5a..785e687b92 100644
--- a/lib/test_server/src/test_server.erl
+++ b/lib/test_server/src/test_server.erl
@@ -2491,11 +2491,7 @@ appup_test(App) ->
%% Checks wether the module is natively compiled or not.
is_native(Mod) ->
- case catch Mod:module_info(native_addresses) of
- [_|_] -> true;
- _Other -> false
- end.
-
+ (catch Mod:module_info(native)) =:= true.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% comment(String) -> ok