diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-08 11:48:04 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-08 11:48:04 -0400 |
commit | f88a4415b6894cf44db2cc8a5ae666152e531404 (patch) | |
tree | c0c52251ba7c6b852b2df71213c18be35bc176dd | |
parent | 1d1081a32fef759640ff60ec3db8ac72d52dcbba (diff) | |
download | mongo-f88a4415b6894cf44db2cc8a5ae666152e531404.tar.gz |
fix regresstion return code
-rw-r--r-- | dbtests/framework.cpp | 11 |
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; |