[Liblas-commits] r1176 - trunk/test/unit

liblas-commits at liblas.org liblas-commits at liblas.org
Sun Apr 5 16:13:27 EDT 2009


Author: mloskot
Date: Sun Apr  5 16:13:26 2009
New Revision: 1176
URL: http://liblas.org/changeset/1176

Log:
test/unit: Return non-success code on tests failure.

Modified:
   trunk/test/unit/liblas_test_suite.cpp

Modified: trunk/test/unit/liblas_test_suite.cpp
==============================================================================
--- trunk/test/unit/liblas_test_suite.cpp	(original)
+++ trunk/test/unit/liblas_test_suite.cpp	Sun Apr  5 16:13:26 2009
@@ -46,8 +46,8 @@
     catch (std::exception const& e)
     {
         std::cerr << "TUT raised exception: " << e.what() << std::endl;
-        return 1;
     }
 
-    return 0;
+    return (reporter.all_ok() ? 0 : 1);
 }
+


More information about the Liblas-commits mailing list