aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-04-13 15:20:53 +0200
committerSverker Eriksson <[email protected]>2016-04-13 15:26:42 +0200
commit588ed7d503f7f607ec91d102f16573ee5d64ea7b (patch)
tree6571bd37fff2c40a2d7b5bdd7a35272fc54bb5b2 /erts/emulator/test
parent97cdb6bd87f38b06ee477dbb17d4d2f7854b21e1 (diff)
downloadotp-588ed7d503f7f607ec91d102f16573ee5d64ea7b.tar.gz
otp-588ed7d503f7f607ec91d102f16573ee5d64ea7b.tar.bz2
otp-588ed7d503f7f607ec91d102f16573ee5d64ea7b.zip
erts: Improve port_SUITE:bad_env
It's not just ok to throw badarg, it MUST throw badarg.
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/port_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/test/port_SUITE.erl b/erts/emulator/test/port_SUITE.erl
index c0c0470c94..a40d9a4d1f 100644
--- a/erts/emulator/test/port_SUITE.erl
+++ b/erts/emulator/test/port_SUITE.erl
@@ -920,10 +920,10 @@ bad_env(Config) when is_list(Config) ->
ok.
try_bad_env(Env) ->
- try open_port({spawn,"ls"}, [{env,Env}])
- catch
- error:badarg -> ok
- end.
+ badarg = try open_port({spawn,"ls"}, [{env,Env}])
+ catch
+ error:badarg -> badarg
+ end.
%% Test bad 'args' options.
bad_args(Config) when is_list(Config) ->