summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-08 11:48:04 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-08 11:48:04 -0400
commitf88a4415b6894cf44db2cc8a5ae666152e531404 (patch)
treec0c52251ba7c6b852b2df71213c18be35bc176dd
parent1d1081a32fef759640ff60ec3db8ac72d52dcbba (diff)
downloadmongo-f88a4415b6894cf44db2cc8a5ae666152e531404.tar.gz
fix regresstion return code
-rw-r--r--dbtests/framework.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/dbtests/framework.cpp b/dbtests/framework.cpp
index fce2c8b5682..57583b2e9f0 100644
--- a/dbtests/framework.cpp
+++ b/dbtests/framework.cpp
@@ -108,8 +108,11 @@ namespace mongo {
r->_messages.push_back( err.str() );
}
}
-
- log(1) << "\t DONE running tests" << endl;
+
+ if ( r->_fails )
+ r->_rc = 17;
+
+ log(1) << "\t DONE running tests" << endl;
return r;
}
@@ -263,12 +266,12 @@ namespace mongo {
cout << r->toString();
if ( abs( r->rc() ) > abs( rc ) )
rc = r->rc();
-
+
tests += r->_tests;
fails += r->_fails;
asserts += r->_asserts;
}
-
+
cout << "TOTALS tests:" << tests << " fails: " << fails << " asserts calls: " << asserts << endl;
return rc;