fix regresstion return code

This commit is contained in:
Eliot Horowitz
2009-10-08 11:48:04 -04:00
parent 1d1081a32f
commit f88a4415b6

View File

@@ -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;