aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-05-04 19:08:03 +0200
committerPeter Andersson <[email protected]>2012-05-04 19:08:03 +0200
commitaf287d7b242b27a05084580f110db2f4a6667e54 (patch)
tree152807a0c193351aeacc33239eba77733673fb72 /lib/common_test/src/ct_hooks.erl
parentc5d6ce6a07478c5ac19fdf2df244c4b837888d08 (diff)
downloadotp-af287d7b242b27a05084580f110db2f4a6667e54.tar.gz
otp-af287d7b242b27a05084580f110db2f4a6667e54.tar.bz2
otp-af287d7b242b27a05084580f110db2f4a6667e54.zip
Fix timetrap error in pre-hooks
Diffstat (limited to 'lib/common_test/src/ct_hooks.erl')
-rw-r--r--lib/common_test/src/ct_hooks.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_hooks.erl b/lib/common_test/src/ct_hooks.erl
index 0fe6e03079..e53ef9f202 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -125,7 +125,7 @@ end_tc(_Mod, TC, Config, Result, _Return) ->
on_tc_skip(How, {Suite, Case, Reason}) ->
call(fun call_cleanup/3, {How, Reason}, [on_tc_skip, Suite, Case]).
-on_tc_fail(_How, {Suite, Case, Reason}) ->
+on_tc_fail(How, {Suite, Case, Reason}) ->
call(fun call_cleanup/3, Reason, [on_tc_fail, Suite, Case]).
%% -------------------------------------------------------------------------
@@ -353,7 +353,6 @@ pos(Id,[_|Rest],Num) ->
pos(Id,Rest,Num+1).
-
catch_apply(M,F,A, Default) ->
try
apply(M,F,A)