aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/port_SUITE.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-06-11 09:32:02 +0000
committerErlang/OTP <[email protected]>2010-06-11 09:32:02 +0000
commitf58c3fd91edb99ab04f57828c932fb3cc4dd46d7 (patch)
treeedfc3dbdd9abd4d0efc03cd04855db551df35655 /erts/emulator/test/port_SUITE.erl
parentc0f23851df50d6215981805102754b590c05acec (diff)
parent65ccc309a0225863913d991f56f17e2aa4f85266 (diff)
downloadotp-f58c3fd91edb99ab04f57828c932fb3cc4dd46d7.tar.gz
otp-f58c3fd91edb99ab04f57828c932fb3cc4dd46d7.tar.bz2
otp-f58c3fd91edb99ab04f57828c932fb3cc4dd46d7.zip
Merge branch 'se/port_SUITE_env' into dev
* se/port_SUITE_env: fix open_port with many unset env vars allow open_port with env vars with trailing '=' on Windows OTP-8701 se/port_SUITE_env open_port/2 with the spawn and spawn_executable options can include an {env,Env} option. In some cases unsetting variables would not work on Unix (typically if more variables were unset than were actually present in the environment).
Diffstat (limited to 'erts/emulator/test/port_SUITE.erl')
-rw-r--r--erts/emulator/test/port_SUITE.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl
index 66aff307a3..77fa75b78f 100644
--- a/erts/emulator/test/port_SUITE.erl
+++ b/erts/emulator/test/port_SUITE.erl
@@ -878,13 +878,20 @@ env2(Config) ->
"nisse" = os:getenv(Long)
end),
-
+
?line env_slave(Temp, [{"must_define_something","some_value"},
- {"certainly_not_existing",false},
+ {"certainly_not_existing",false},
{"ends_with_equal", "value="},
{Long,false},
{"glurf","a glorfy string"}]),
+ %% A lot of non existing variables (mingled with existing)
+ NotExistingList = [{lists:flatten(io_lib:format("V~p_not_existing",[X])),false}
+ || X <- lists:seq(1,150)],
+ ExistingList = [{lists:flatten(io_lib:format("V~p_existing",[X])),"a_value"}
+ || X <- lists:seq(1,150)],
+ ?line env_slave(Temp, lists:sort(ExistingList ++ NotExistingList)),
+
?line test_server:timetrap_cancel(Dog),
ok.