diff options
author | Lukas Larsson <[email protected]> | 2015-10-20 18:19:17 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2015-12-15 10:05:47 +0100 |
commit | 70c4711252e260e4ad4c43625226b21ecf775a75 (patch) | |
tree | fa6a005cd71aa4ee7aa507680459a73057f515a6 /erts/emulator | |
parent | 99415cedd98151ca74715b6cadf90f6dd8493025 (diff) | |
download | otp-70c4711252e260e4ad4c43625226b21ecf775a75.tar.gz otp-70c4711252e260e4ad4c43625226b21ecf775a75.tar.bz2 otp-70c4711252e260e4ad4c43625226b21ecf775a75.zip |
erts: Allow enomem failures in port_SUITE
With the new forker implementation also enomem can be returned
as an indicator that it is not possible to create more ports.
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/port_SUITE.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl index 19065fe811..6f29e3ad95 100644 --- a/erts/emulator/test/port_SUITE.erl +++ b/erts/emulator/test/port_SUITE.erl @@ -1310,13 +1310,15 @@ otp_4389(Config) when is_list(Config) -> {P,{exit_status,_}} -> TCR ! {self(),ok}; {'EXIT',_,{R2,_}} when R2 == emfile; - R2 == eagain -> + R2 == eagain; + R2 == enomem -> TCR ! {self(),ok}; Err2 -> TCR ! {self(),{msg,Err2}} end; {'EXIT',{R1,_}} when R1 == emfile; - R1 == eagain -> + R1 == eagain; + R1 == enomem -> TCR ! {self(),ok}; Err1 -> TCR ! {self(), {open_port,Err1}} @@ -1922,10 +1924,12 @@ exit_status_msb_test(Config, SleepSecs) when is_list(Config) -> {Prt, erlang:system_info(scheduler_id)}; {'EXIT', {Err, _}} when Err == eagain; - Err == emfile -> + Err == emfile; + Err == enomem -> noop; {'EXIT', Err} when Err == eagain; - Err == emfile -> + Err == emfile; + Err == enomem -> noop; Error -> ?t:fail(Error) |