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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user