aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_hooks.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-08-23 15:11:06 +0200
committerPeter Andersson <[email protected]>2012-08-23 15:15:46 +0200
commit55a885431333e263228e069c2aa7d56ec8e2b25c (patch)
tree4b4a0e4cbb0cd5170e075fefb392eeab9516f3a7 /lib/common_test/src/ct_hooks.erl
parentdb5288a7ee4a60aff143f65b90a2bebcbe1bf15d (diff)
parente711632042d1538fce80d565a2add309a88efa1b (diff)
downloadotp-55a885431333e263228e069c2aa7d56ec8e2b25c.tar.gz
otp-55a885431333e263228e069c2aa7d56ec8e2b25c.tar.bz2
otp-55a885431333e263228e069c2aa7d56ec8e2b25c.zip
Merge remote branch 'origin/peppe/common_test/ct_hooks_errors' into maint
* origin/peppe/common_test/ct_hooks_errors: Fix IO printout crash caused by hook function Fix timetrap error in pre-hooks Conflicts: lib/common_test/src/cth_surefire.erl OTP-10050 OTP-10069 OTP-10072
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..98b74665de 100644
--- a/lib/common_test/src/ct_hooks.erl
+++ b/lib/common_test/src/ct_hooks.erl
@@ -353,11 +353,10 @@ pos(Id,[_|Rest],Num) ->
pos(Id,Rest,Num+1).
-
catch_apply(M,F,A, Default) ->
try
apply(M,F,A)
- catch error:Reason ->
+ catch _:Reason ->
case erlang:get_stacktrace() of
%% Return the default if it was the CTH module which did not have the function.
[{M,F,A,_}|_] when Reason == undef ->