diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-11 12:21:50 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-11 12:21:50 +0100 |
commit | 6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef (patch) | |
tree | e0a35828601078cd489625c7664138d1e73f3c29 /lib/kernel/test/code_SUITE.erl | |
parent | 8abbf2b7e348674930a31c34a08fa1424bc08c78 (diff) | |
parent | 0660708dd41e5b0b1c2d03487121ace9c3616374 (diff) | |
download | otp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.tar.gz otp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.tar.bz2 otp-6b0aa99142ab7dcbc3db50b4940d6096d64ab6ef.zip |
Merge branch 'vd/code_get_mode/OTP-10823'
* vd/code_get_mode/OTP-10823:
Added name prefix to code.xml
Add a new function code:get_mode() can be used to detect how the code servers behaves
Diffstat (limited to 'lib/kernel/test/code_SUITE.erl')
-rw-r--r-- | lib/kernel/test/code_SUITE.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl index d7424c0c9a..4c040f0a0e 100644 --- a/lib/kernel/test/code_SUITE.erl +++ b/lib/kernel/test/code_SUITE.erl @@ -33,7 +33,7 @@ purge_stacktrace/1, mult_lib_roots/1, bad_erl_libs/1, code_archive/1, code_archive2/1, on_load/1, on_load_binary/1, on_load_embedded/1, on_load_errors/1, big_boot_embedded/1, - native_early_modules/1]). + native_early_modules/1, get_mode/1]). -export([init_per_testcase/2, end_per_testcase/2, init_per_suite/1, end_per_suite/1, @@ -60,7 +60,7 @@ all() -> where_is_file_cached, purge_stacktrace, mult_lib_roots, bad_erl_libs, code_archive, code_archive2, on_load, on_load_binary, on_load_embedded, on_load_errors, - big_boot_embedded, native_early_modules]. + big_boot_embedded, native_early_modules, get_mode]. groups() -> []. @@ -1594,6 +1594,11 @@ native_early_modules_1(Architecture) -> ok end. +get_mode(suite) -> []; +get_mode(doc) -> ["Test that the mode of the code server is properly retrieved"]; +get_mode(Config) when is_list(Config) -> + interactive = code:get_mode(). + %%----------------------------------------------------------------- %% error_logger handler. %% (Copied from stdlib/test/proc_lib_SUITE.erl.) |