aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-08 14:51:44 +0200
committerBjörn Gustavsson <[email protected]>2015-05-08 14:51:44 +0200
commitef1e9027c9ec7aa55de13eb3cb8372fddc59d30b (patch)
treeb320f02402c7d3e03b53026f49b7fa226b3e24d7 /lib/test_server
parenta06c324e16ed07016e258556fbff65a886bd2253 (diff)
parente47490f83e561a45cee9e8f72f1e1f91f19c60b7 (diff)
downloadotp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.tar.gz
otp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.tar.bz2
otp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.zip
Merge branch 'richcarl/md5-fixes'
* richcarl/md5-fixes: Set module_info md5 for native modules properly Add module_info entry for native code Gracefully handle empty md5 field in module_info Remove 'imports' key from spec of get_module_info()
Diffstat (limited to 'lib/test_server')
-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