aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/module_info_SUITE.erl
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 /erts/emulator/test/module_info_SUITE.erl
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 'erts/emulator/test/module_info_SUITE.erl')
-rw-r--r--erts/emulator/test/module_info_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/module_info_SUITE.erl b/erts/emulator/test/module_info_SUITE.erl
index f3986f0c4f..1125cf3072 100644
--- a/erts/emulator/test/module_info_SUITE.erl
+++ b/erts/emulator/test/module_info_SUITE.erl
@@ -94,12 +94,15 @@ functions(Config) when is_list(Config) ->
ok.
%% Test that the list of exported functions from this module is correct.
+%% Verify that module_info(native) works.
native(Config) when is_list(Config) ->
?line All = all_functions(),
?line case ?MODULE:module_info(native_addresses) of
[] ->
+ ?line false = ?MODULE:module_info(native),
{comment,"no native functions"};
L ->
+ ?line true = ?MODULE:module_info(native),
%% Verify that all functions have unique addresses.
?line S0 = sofs:set(L, [{name,arity,addr}]),
?line S1 = sofs:projection({external,fun ?MODULE:native_proj/1}, S0),