mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-15 02:43:14 +08:00
on test failure, abort instead of exit, so we can get a stack trace
This commit is contained in:
parent
99ccb26cfe
commit
7d441260db
@ -166,7 +166,7 @@ namespace Eigen
|
|||||||
#define VERIFY(a) do { if (!(a)) { \
|
#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::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; \
|
<< std::endl << " " << EI_PP_MAKE_STRING(a) << std::endl << std::endl; \
|
||||||
exit(2); \
|
abort(); \
|
||||||
} } while (0)
|
} } while (0)
|
||||||
|
|
||||||
#define VERIFY_IS_EQUAL(a, b) VERIFY(test_is_equal(a, b))
|
#define VERIFY_IS_EQUAL(a, b) VERIFY(test_is_equal(a, b))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user