aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_suite_callback.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-02-09 14:01:39 +0100
committerLukas Larsson <[email protected]>2011-02-17 16:59:39 +0100
commitff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7 (patch)
tree026e7d50511f663cbfa301b746e80672d51d715e /lib/common_test/src/ct_suite_callback.erl
parente34cd721545915266a00b1ec55a9a5867c8459a4 (diff)
downloadotp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.tar.gz
otp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.tar.bz2
otp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.zip
Fix bug where the state of an SCB was altered when no on_tc_* existed
Diffstat (limited to 'lib/common_test/src/ct_suite_callback.erl')
-rw-r--r--lib/common_test/src/ct_suite_callback.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_suite_callback.erl b/lib/common_test/src/ct_suite_callback.erl
index 947fa0c716..a93b05b1d2 100644
--- a/lib/common_test/src/ct_suite_callback.erl
+++ b/lib/common_test/src/ct_suite_callback.erl
@@ -34,8 +34,6 @@
-type proplist() :: [{atom(),term()}].
-define(config_name, suite_callbacks).
--define(LOCK_STATE_TIMEOUT, 500).
--define(LOCK_NAME, '$ct_suite_callback_lock').
%% -------------------------------------------------------------------------
%% API Functions
@@ -146,7 +144,7 @@ call_terminate({Mod, State}, _, _) ->
call_cleanup({Mod, State}, Reason, [Function | Args]) ->
NewState = catch_apply(Mod,Function, Args ++ [Reason, State],
- {Reason,State}),
+ State),
{Reason, {Mod, NewState}}.
call_generic({Mod, State}, Value, [Function | Args]) ->