aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-10-29 10:07:30 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-10-29 10:07:30 -0400
commit7d441260db2c24bd1519600cfb23143be5fe2ab0 (patch)
tree2bc54534037a53807154d093c18c0fddb524b49f /test
parent99ccb26cfef09b670c718e7b57829d44c9b9e281 (diff)
on test failure, abort instead of exit, so we can get a stack trace
Diffstat (limited to 'test')
-rw-r--r--test/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h
index e03838714..73f32e782 100644
--- a/test/main.h
+++ b/test/main.h
@@ -166,7 +166,7 @@ namespace Eigen
#define VERIFY(a) do { if (!(a)) { \
std::cerr << "Test " << g_test_stack.back() << " failed in "EI_PP_MAKE_STRING(__FILE__) << " (" << EI_PP_MAKE_STRING(__LINE__) << ")" \
<< std::endl << " " << EI_PP_MAKE_STRING(a) << std::endl << std::endl; \
- exit(2); \
+ abort(); \
} } while (0)
#define VERIFY_IS_EQUAL(a, b) VERIFY(test_is_equal(a, b))