aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-07-29 18:43:38 +0200
committerMicael Karlberg <[email protected]>2019-07-29 18:43:38 +0200
commit9921da9e5117ce0c90ebaba1ccc3346acfd9e24e (patch)
treeda99ac2ffb760c641c7ef65482a9ea3a0b940122 /lib/snmp/test
parentf657d903027bb5fe2edfde2ba804e3579f4b87be (diff)
parent7669dd6ec1c05ff9a3b46b10141fd235a618460a (diff)
downloadotp-9921da9e5117ce0c90ebaba1ccc3346acfd9e24e.tar.gz
otp-9921da9e5117ce0c90ebaba1ccc3346acfd9e24e.tar.bz2
otp-9921da9e5117ce0c90ebaba1ccc3346acfd9e24e.zip
Merge branch 'maint'
Diffstat (limited to 'lib/snmp/test')
-rw-r--r--lib/snmp/test/snmp_agent_test_lib.erl13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl
index 615d6774b9..c0da47dc4c 100644
--- a/lib/snmp/test/snmp_agent_test_lib.erl
+++ b/lib/snmp/test/snmp_agent_test_lib.erl
@@ -423,7 +423,18 @@ tc_wait(From, Env, M, F, A) ->
"~n ~p"
"~n", [Res]),
From ! {tc_runner_done, self(), Res, get(test_server_loc)},
- exit(Res).
+ %% The point of this is that in some cases we have seen that the
+ %% exit signal having been "passed on" to the CT, which consider any
+ %% exit a fail (even if its {'EXIT', ok}).
+ %% So, just to be on the safe side, convert an 'ok' to a 'normal'.
+ case Res of
+ ok ->
+ exit(normal);
+ {ok, _} ->
+ exit(normal);
+ _ ->
+ exit(Res)
+ end.
tc_run(Mod, Func, Args, Opts) ->
?PRINT2("tc_run -> entry with"