aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/test_server_sup.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2019-04-01 16:36:20 +0200
committerSiri Hansen <[email protected]>2019-04-15 11:02:37 +0200
commit62ed4780f713d86a9bca332945bf583111570978 (patch)
tree0303c7341885e8284072e567f336aef37c086a96 /lib/common_test/src/test_server_sup.erl
parent8ab1bc2af5933b36c1583b1168e9b7875334cd50 (diff)
downloadotp-62ed4780f713d86a9bca332945bf583111570978.tar.gz
otp-62ed4780f713d86a9bca332945bf583111570978.tar.bz2
otp-62ed4780f713d86a9bca332945bf583111570978.zip
[ct] Cleanup after timetrap timeout or kill during framework call or hook
If a framework callback function exits due to a timetrap timeout, or the process in other way is killed, during the execution of such function, some internal common_test data was not cleaned up. An example of such data is the 'curr_tc' test data. This is now corrected.
Diffstat (limited to 'lib/common_test/src/test_server_sup.erl')
-rw-r--r--lib/common_test/src/test_server_sup.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common_test/src/test_server_sup.erl b/lib/common_test/src/test_server_sup.erl
index 6ddbf1ad27..fae977e40c 100644
--- a/lib/common_test/src/test_server_sup.erl
+++ b/lib/common_test/src/test_server_sup.erl
@@ -770,7 +770,7 @@ framework_call(Callback,Func,Args,DefaultReturn) ->
end,
case SetTcState of
true ->
- test_server:set_tc_state({framework,Mod,Func});
+ test_server:set_tc_state({framework,{Mod,Func,Args}});
false ->
ok
end,