2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

* libs/numeric/ublas/test/utils.hpp: test suite should return non-zero status if any test failed

svn path=/trunk/libs/numeric/ublas/; revision=80489
This commit is contained in:
Gunter Winkler
2012-09-10 22:22:23 +00:00
parent 277d818032
commit 20678c69aa

View File

@@ -203,15 +203,17 @@ bool rel_close_to(::std::complex<T1> const& x, ::std::complex<T2> const& y, T3 t
/* [/BOOST_UBLAS_TEST_DO] */
/// Define the end of a test suite.
/// Define the end of a test suite and return non-zero value if any test failed.
#define BOOST_UBLAS_TEST_END() /* [BOOST_UBLAS_TEST_END] */ \
if (test_fails__ > 0) \
{ \
::std::cerr << "Number of failed tests: " << test_fails__ << ::std::endl; \
return 1; \
} \
else \
{ \
::std::cerr << "No failed test" << ::std::endl; \
return 0; \
} \
} /* End of test suite */ \
/* [/BOOST_UBLAS_TEST_END] */