aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-13 15:11:43 +0100
committerBjörn Gustavsson <[email protected]>2016-01-20 12:32:58 +0100
commit56eded8ac675bf0e6f955c291be845f668d2b795 (patch)
treed66168c49672b78f3cdb55f47dd139deb4e312a4 /lib/kernel/test
parentb662e8abbdf63390af5173752ea87d7c952f5185 (diff)
downloadotp-56eded8ac675bf0e6f955c291be845f668d2b795.tar.gz
otp-56eded8ac675bf0e6f955c291be845f668d2b795.tar.bz2
otp-56eded8ac675bf0e6f955c291be845f668d2b795.zip
erl_prim_loader: Rename release_archives/0
Rename release_archives/0 to purge_archive_cache/0 to make it clearer what it does and what it doesn't do. Also add a comment about its intended purpose. Note that release_archives/0 is not documented and is part of the experimental archive feature. Furthermore, the only uses I could find were in the test suite. I did not find any uses in the external applications relx and rebar3 applications that are known to use archives. Therefore, I think that the increased clarity is worth the small risk of breaking code.
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/erl_prim_loader_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/erl_prim_loader_SUITE.erl b/lib/kernel/test/erl_prim_loader_SUITE.erl
index ffcde5e458..e9ff79af19 100644
--- a/lib/kernel/test/erl_prim_loader_SUITE.erl
+++ b/lib/kernel/test/erl_prim_loader_SUITE.erl
@@ -392,7 +392,7 @@ local_archive(Config) when is_list(Config) ->
?line ok = test_archive(Node, Archive, KernelDir, BeamName),
%% Cleanup
- ?line ok = rpc:call(Node, erl_prim_loader, release_archives, []),
+ ok = rpc:call(Node, erl_prim_loader, purge_archive_cache, []),
?line ok = file:delete(Archive),
ok.
@@ -550,7 +550,7 @@ virtual_dir_in_archive(Config) when is_list(Config) ->
?line {ok, [EbinBase]} = erl_prim_loader:list_dir(AppDir),
%% Cleanup
- ?line ok = erl_prim_loader:release_archives(),
+ ok = erl_prim_loader:purge_archive_cache(),
?line ok = file:delete(Archive),
ok.