diff options
Diffstat (limited to 'src/mongo/dbtests/framework.cpp')
-rw-r--r-- | src/mongo/dbtests/framework.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp index 6b9c3d8b546..67cd770e231 100644 --- a/src/mongo/dbtests/framework.cpp +++ b/src/mongo/dbtests/framework.cpp @@ -20,10 +20,6 @@ #include "../util/version.h" #include <boost/program_options.hpp> #include <boost/filesystem/operations.hpp> - -#undef assert -#define assert MONGO_assert - #include "framework.h" #include "../util/file_allocator.h" #include "../db/dur.h" @@ -365,7 +361,7 @@ namespace mongo { for ( list<string>::iterator i=torun.begin(); i!=torun.end(); i++ ) { string name = *i; Suite * s = (*_suites)[name]; - assert( s ); + verify( s ); log() << "going to run suite: " << name << endl; results.push_back( s->run( filter ) ); @@ -424,7 +420,7 @@ namespace mongo { } void fail( const char * exp , const char * file , unsigned line ) { - assert(0); + verify(0); } MyAssertionException * MyAsserts::getBase() { |