diff options
author | Siri Hansen <[email protected]> | 2012-11-01 15:58:52 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-11-07 12:04:29 +0100 |
commit | 3c910e0163b5f3485005638381faa99238ed91b4 (patch) | |
tree | 0b50e62621276d262f5f1e4f5d9ec343f123d49c /lib/test_server/src/test_server_sup.erl | |
parent | cecdbbd5eaf3d340c7bb3341eed664f5683bafd4 (diff) | |
download | otp-3c910e0163b5f3485005638381faa99238ed91b4.tar.gz otp-3c910e0163b5f3485005638381faa99238ed91b4.tar.bz2 otp-3c910e0163b5f3485005638381faa99238ed91b4.zip |
[test_server] Add Config to run_test_case_msgloop/1 from the start
Earlier, #st.config was set to undefined when entering this loop. Then
it was updated when the test case itself started. This means that if
the test case process crashed during test case initiation, the parent
process would not know the Config.
This commit saves the initial Config value in the parent process
(run_test_case_msgloop/1) from the start.
Diffstat (limited to 'lib/test_server/src/test_server_sup.erl')
-rw-r--r-- | lib/test_server/src/test_server_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server_sup.erl b/lib/test_server/src/test_server_sup.erl index 3d00318b1b..ba5bb9f5d2 100644 --- a/lib/test_server/src/test_server_sup.erl +++ b/lib/test_server/src/test_server_sup.erl @@ -520,7 +520,7 @@ framework_call(Callback,Func,Args,DefaultReturn) -> end, case SetTcState of true -> - test_server:set_tc_state({framework,Mod,Func}, undefined); + test_server:set_tc_state({framework,Mod,Func}); false -> ok end, |