diff options
author | Dan Gudmundsson <[email protected]> | 2015-01-14 16:24:09 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-02-10 15:27:16 +0100 |
commit | cde9cccfa1c4c262cccfb87299689e11c9cc8677 (patch) | |
tree | ed7a349c9d2375d856e46fcc4037d5ba3a3f1648 /lib/mnesia/test/mnesia_test_lib.hrl | |
parent | 99086ccdade5f00319edd7becade51546e2b1f70 (diff) | |
download | otp-cde9cccfa1c4c262cccfb87299689e11c9cc8677.tar.gz otp-cde9cccfa1c4c262cccfb87299689e11c9cc8677.tar.bz2 otp-cde9cccfa1c4c262cccfb87299689e11c9cc8677.zip |
mnesia: better debug info when tests fail
Diffstat (limited to 'lib/mnesia/test/mnesia_test_lib.hrl')
-rw-r--r-- | lib/mnesia/test/mnesia_test_lib.hrl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/mnesia/test/mnesia_test_lib.hrl b/lib/mnesia/test/mnesia_test_lib.hrl index 94a195f01f..cd76377df6 100644 --- a/lib/mnesia/test/mnesia_test_lib.hrl +++ b/lib/mnesia/test/mnesia_test_lib.hrl @@ -66,12 +66,14 @@ ?verbose("ok, ~n Result as expected:~p~n",[_AR_2]), {success,_AR_2}; _AR_2 -> - ?error("Not Matching Actual result was:~n ~p~n", [_AR_2]), + ?error("Not Matching Actual result was:~n ~p~n ~p~n", + [_AR_2, erlang:get_stacktrace()]), {fail,_AR_2} end; - _:_AR_1 -> - ?error("Not Matching Actual result was:~n ~p~n", [_AR_1]), - {fail,_AR_1} + _T1_:_AR_1 -> + ?error("Not Matching Actual result was:~n ~p~n ~p~n", + [{_T1_,_AR_1}, erlang:get_stacktrace()]), + {fail,{_T1_,_AR_1}} end end()). |