diff options
author | Björn Gustavsson <[email protected]> | 2015-04-20 08:00:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-20 12:59:11 +0200 |
commit | bb20626522a8d5cb92b2379751450905151cab44 (patch) | |
tree | b5dc7a31c6f2310b5f7fe9c4428eb33588671582 /lib/compiler/test/compilation_SUITE.erl | |
parent | 6c3f8818f802164869519d58a538e70b1b8cc76c (diff) | |
download | otp-bb20626522a8d5cb92b2379751450905151cab44.tar.gz otp-bb20626522a8d5cb92b2379751450905151cab44.tar.bz2 otp-bb20626522a8d5cb92b2379751450905151cab44.zip |
compilation_SUITE: Unload tested modules using the code server
Don't unload modules using BIFs; use the code server to ensure
that code:all_loaded/0 only lists code that is actually loaded.
Diffstat (limited to 'lib/compiler/test/compilation_SUITE.erl')
-rw-r--r-- | lib/compiler/test/compilation_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/test/compilation_SUITE.erl b/lib/compiler/test/compilation_SUITE.erl index 296774e083..51e1da2cb6 100644 --- a/lib/compiler/test/compilation_SUITE.erl +++ b/lib/compiler/test/compilation_SUITE.erl @@ -309,8 +309,8 @@ load_and_call(Out, Module) -> %% Smoke-test of beam disassembler. ?line test_lib:smoke_disasm(Module), - ?line true = erlang:delete_module(Module), - ?line true = erlang:purge_module(Module), + _ = code:delete(Module), + _ = code:purge(Module), %% Restore state of trap_exit just in case. (Since the compiler %% uses a temporary process, we will get {'EXIT',Pid,normal} messages |