diff options
author | John Högberg <[email protected]> | 2017-10-11 10:01:53 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-11-30 15:44:33 +0100 |
commit | 26b39c8914cb030886ddfbc3ce4b938dbd5bafc3 (patch) | |
tree | 41e67ea4de9790940506aeb4bab772119373f4c7 /lib/kernel/test/erl_prim_loader_SUITE.erl | |
parent | ebbd26eeea4115c946d1254d94acd50f150b4455 (diff) | |
download | otp-26b39c8914cb030886ddfbc3ce4b938dbd5bafc3.tar.gz otp-26b39c8914cb030886ddfbc3ce4b938dbd5bafc3.tar.bz2 otp-26b39c8914cb030886ddfbc3ce4b938dbd5bafc3.zip |
Account for new behavior in tests that touch prim_file
This also hides the module behind ?PRIM_FILE to make testing new
implementations less painful.
Diffstat (limited to 'lib/kernel/test/erl_prim_loader_SUITE.erl')
-rw-r--r-- | lib/kernel/test/erl_prim_loader_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/test/erl_prim_loader_SUITE.erl b/lib/kernel/test/erl_prim_loader_SUITE.erl index b6417210b9..3502a4ad08 100644 --- a/lib/kernel/test/erl_prim_loader_SUITE.erl +++ b/lib/kernel/test/erl_prim_loader_SUITE.erl @@ -33,6 +33,7 @@ primary_archive/1, virtual_dir_in_archive/1, get_modules/1]). +-define(PRIM_FILE, prim_file). %%----------------------------------------------------------------- %% Test suite for erl_prim_loader. (Most code is run during system start/stop.) @@ -461,7 +462,7 @@ primary_archive(Config) when is_list(Config) -> %% Set primary archive ExpectedEbins = [Archive, DictDir ++ "/ebin", DummyDir ++ "/ebin"], io:format("ExpectedEbins: ~p\n", [ExpectedEbins]), - {ok, FileInfo} = prim_file:read_file_info(Archive), + {ok, FileInfo} = ?PRIM_FILE:read_file_info(Archive), {ok, Ebins} = rpc:call(Node, erl_prim_loader, set_primary_archive, [Archive, ArchiveBin, FileInfo, fun escript:parse_file/1]), |