[Rcpp-commits] r2548 - pkg/Rcpp/inst/doc/unitTests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Nov 27 15:38:56 CET 2010


Author: edd
Date: 2010-11-27 15:38:56 +0100 (Sat, 27 Nov 2010)
New Revision: 2548

Modified:
   pkg/Rcpp/inst/doc/unitTests/Rcpp-unitTests.R
Log:
revert back to stop() on failure too


Modified: pkg/Rcpp/inst/doc/unitTests/Rcpp-unitTests.R
===================================================================
--- pkg/Rcpp/inst/doc/unitTests/Rcpp-unitTests.R	2010-11-27 09:21:26 UTC (rev 2547)
+++ pkg/Rcpp/inst/doc/unitTests/Rcpp-unitTests.R	2010-11-27 14:38:56 UTC (rev 2548)
@@ -22,7 +22,7 @@
 tests <- runTestSuite(testSuite)
 err <- getErrors(tests)
 if( err$nFail > 0) {
-    warning(sprintf( "unit test problems: %d failures", err$nFail))
+    stop(sprintf( "unit test problems: %d failures", err$nFail))
 }
 if( err$nErr > 0) {
     stop( sprintf( "unit test problems: %d errors", err$nErr) )



More information about the Rcpp-commits mailing list