aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorPeter Lemenkov <[email protected]>2018-09-26 13:17:48 +0300
committerPeter Lemenkov <[email protected]>2018-09-26 13:19:15 +0300
commitbcab56a13fafdf8db9997dd4453812e66ae294e7 (patch)
tree9ce0c4aa5e8cb45fb8af75cb66c6d72b3db19782 /erts/emulator
parent77a9445af06fec32f267d9dcb52be652a8c0fdb3 (diff)
downloadotp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.gz
otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.bz2
otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.zip
Use os:getenv/2 where possible
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/test/smoke_test_SUITE.erl7
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) ->