Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80489 - trunk/libs/numeric/ublas/test
From: guwi17_at_[hidden]
Date: 2012-09-10 18:22:24


Author: guwi17
Date: 2012-09-10 18:22:23 EDT (Mon, 10 Sep 2012)
New Revision: 80489
URL: http://svn.boost.org/trac/boost/changeset/80489

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

Text files modified:
   trunk/libs/numeric/ublas/test/utils.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/libs/numeric/ublas/test/utils.hpp
==============================================================================
--- trunk/libs/numeric/ublas/test/utils.hpp (original)
+++ trunk/libs/numeric/ublas/test/utils.hpp 2012-09-10 18:22:23 EDT (Mon, 10 Sep 2012)
@@ -203,15 +203,17 @@
                                                                 /* [/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] */


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk