summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-09-15 10:09:23 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-09-15 10:09:23 +0100
commite9c571482be725fc9e28a18ab89445af11b3db0a (patch)
tree386281a248bf499639f108879c384a21a2012cb7 /src
parent50019174c7567fbfcc9dd34d479aa7111d7de88e (diff)
downloadrabbitmq-server-e9c571482be725fc9e28a18ab89445af11b3db0a.tar.gz
Stack trace on test failure.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_tests.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 8dc51f37..fda37bfa 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -32,6 +32,16 @@
-define(TIMEOUT, 5000).
all_tests() ->
+ try
+ all_tests0()
+ catch
+ Type:Error ->
+ rabbit_misc:format(
+ "Tests failed~nError: {~p, ~p}~nStack trace:~n~p~n",
+ [Type, Error, erlang:get_stacktrace()])
+ end.
+
+all_tests0() ->
ok = setup_cluster(),
ok = truncate:test(),
ok = supervisor2_tests:test_all(),