diff options
author | Hans Bolinder <[email protected]> | 2018-10-08 08:16:02 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-10-08 08:16:02 +0200 |
commit | 870f4f4518846243f1ac2b2aefe36aa92dc366a5 (patch) | |
tree | c1adec003b90cba8c3be0c6f9fb91aa471a288f2 /erts/emulator | |
parent | e2a1ec914d9bec9f9310669df877601eed2f808d (diff) | |
parent | bcab56a13fafdf8db9997dd4453812e66ae294e7 (diff) | |
download | otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.tar.gz otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.tar.bz2 otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.zip |
Merge pull request #1964 from lemenkov/more_os_getenv_2
Use os:getenv/2 where possible
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/smoke_test_SUITE.erl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/emulator/test/smoke_test_SUITE.erl b/erts/emulator/test/smoke_test_SUITE.erl index 26c610e3a8..5b46342127 100644 --- a/erts/emulator/test/smoke_test_SUITE.erl +++ b/erts/emulator/test/smoke_test_SUITE.erl @@ -56,7 +56,7 @@ end_per_testcase(_Case, Config) when is_list(Config) -> %%% boot_combo(Config) when is_list(Config) -> - ZFlags = os:getenv("ERL_ZFLAGS"), + ZFlags = os:getenv("ERL_ZFLAGS", ""), NOOP = fun () -> ok end, A42 = fun () -> case erlang:system_info(threads) of @@ -87,10 +87,7 @@ boot_combo(Config) when is_list(Config) -> %% A lot more combos could be implemented... ok after - os:putenv("ERL_ZFLAGS", case ZFlags of - false -> ""; - _ -> ZFlags - end) + os:putenv("ERL_ZFLAGS", ZFlags) end. native_atomics(Config) when is_list(Config) -> |