aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-11-18 10:00:46 +0100
committerFredrik Gustafsson <[email protected]>2013-11-18 10:00:46 +0100
commit04f5e4e820f792b3f07dd232f582e6a7e0a3d3f7 (patch)
tree676a2c175d7b2e6fe993344409db35137d8186e5 /erts/emulator/test
parent22b3a285aadffdb02f04230b78c167f52f7d7bc1 (diff)
parentb2e4599affa6718bba60ef3846d130513e9a740d (diff)
downloadotp-04f5e4e820f792b3f07dd232f582e6a7e0a3d3f7.tar.gz
otp-04f5e4e820f792b3f07dd232f582e6a7e0a3d3f7.tar.bz2
otp-04f5e4e820f792b3f07dd232f582e6a7e0a3d3f7.zip
Merge branch 'maint'
Conflicts: bootstrap/lib/kernel/ebin/os.beam
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/bif_SUITE.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/erts/emulator/test/bif_SUITE.erl b/erts/emulator/test/bif_SUITE.erl
index 02c6de8cb1..fbc229bc53 100644
--- a/erts/emulator/test/bif_SUITE.erl
+++ b/erts/emulator/test/bif_SUITE.erl
@@ -388,8 +388,12 @@ os_env(Config) when is_list(Config) ->
false -> ?line ok;
BadVal -> ?line ?t:fail(BadVal)
end,
- %% os:putenv and os:getenv currently uses a temp buf of size 1024
- %% for storing key+value
+ true = os:putenv(EnvVar1, "mors"),
+ true = os:unsetenv(EnvVar1),
+ false = os:getenv(EnvVar1),
+ true = os:unsetenv(EnvVar1), % unset unset variable
+ %% os:putenv, os:getenv and os:unsetenv currently use a temp
+ %% buffer of size 1024 for storing key+value
?line os_env_long(1010, 1030, "hej hopp").
os_env_long(Min, Max, _Value) when Min > Max ->
@@ -398,7 +402,7 @@ os_env_long(Min, Max, Value) ->
?line EnvVar = lists:duplicate(Min, $X),
?line true = os:putenv(EnvVar, Value),
?line Value = os:getenv(EnvVar),
- ?line true = os:putenv(EnvVar, ""),
+ true = os:unsetenv(EnvVar),
?line os_env_long(Min+1, Max, Value).
otp_7526(doc) ->