diff options
author | Siri Hansen <[email protected]> | 2013-02-14 18:25:49 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-02-21 11:03:36 +0100 |
commit | c98fffd0d490cde6910c64acdba308b4224cc735 (patch) | |
tree | 78e511e0f5ab30e6eac13658e12aea6b353387c3 /lib/reltool/examples | |
parent | 0a572151a47dce3b5ae334c2f5a7eccf0530885e (diff) | |
download | otp-c98fffd0d490cde6910c64acdba308b4224cc735.tar.gz otp-c98fffd0d490cde6910c64acdba308b4224cc735.tar.bz2 otp-c98fffd0d490cde6910c64acdba308b4224cc735.zip |
[reltool] Make escript test work with hipe and smp
reltool_server_SUITE:create_standalone and create_multiple_standalone
failed on test hosts running hipe and smp. The reason was that the
escript used in these tests explicitly disabled smp, which in turn
made the emulator spit out warnings like this:
"<HiPE (v 3.10)> Warning: not loading native code for module beam_lib:
it was compiled for an incompatible runtime system; please regenerate
native code for this runtime system"
This was returned from the escript and did not match the expected result.
To overcome this, the escript (reltool/examples/display_args) is
changed and does no longer disable smp.
Diffstat (limited to 'lib/reltool/examples')
-rw-r--r-- | lib/reltool/examples/display_args | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/reltool/examples/display_args b/lib/reltool/examples/display_args index bf0994ab7c..a8882f7bda 100644 --- a/lib/reltool/examples/display_args +++ b/lib/reltool/examples/display_args @@ -1,8 +1,9 @@ #!/usr/bin/env escript %% -*- erlang -*- -%%! -smp disable +%%! -emuarg emuvalue main(Args) -> + {ok,[Emuvalue]} = init:get_argument(emuarg), io:format("Root dir: ~s\n", [code:root_dir()]), io:format("Script args: ~p\n", [Args]), - io:format("Smp: ~p\n", [erlang:system_info(smp_support)]). + io:format("Emuarg: ~p\n", [Emuvalue]). |