on an unnumbered assertion (not an massert or uassert), abort() if it

is a test build (_DEBUG etc.)  this way we are more likely to notice
something wrong in buildbot.
This commit is contained in:
dwight
2011-03-22 00:52:34 -04:00
parent 75ecdb8d46
commit 64359fbbf6

View File

@@ -82,6 +82,11 @@ namespace mongo {
temp << "assertion " << file << ":" << line;
AssertionException e(temp.str(),0);
breakpoint();
#if defined(_DEBUG) || defined(_DURABLEDEFAULTON)
// this is so we notice it happened more often
log() << "\n\n***aborting after assert() failure in a debug/test build\n\n" << endl;
abort();
#endif
throw e;
}