summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-09-13 10:59:15 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-09-26 12:18:12 -0400
commit41c4c364d1a04de987a1aabe58b38bc4582a534e (patch)
tree13731a2438fe267ad1d8e73fe9edb1341cc201e1 /src/mongo/dbtests/dbtests.cpp
parent1af03cddde9fb4c1207b982d42add6fd9235fc12 (diff)
downloadmongo-41c4c364d1a04de987a1aabe58b38bc4582a534e.tar.gz
Call runGlobalInitializersOrDie() at the top of the main() functions in mongo programs.
SERVER-5112
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r--src/mongo/dbtests/dbtests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp
index d84df604c56..19fcb0b9f5a 100644
--- a/src/mongo/dbtests/dbtests.cpp
+++ b/src/mongo/dbtests/dbtests.cpp
@@ -19,12 +19,14 @@
#include "pch.h"
+#include "mongo/base/initializer.h"
#include "mongo/dbtests/dbtests.h"
#include "mongo/dbtests/framework.h"
#include "mongo/util/startup_test.h"
-int main( int argc, char** argv ) {
+int main( int argc, char** argv, char** envp ) {
static StaticObserver StaticObserver;
+ mongo::runGlobalInitializersOrDie(argc, argv, envp);
StartupTest::runTests();
_exit(mongo::dbtests::runDbTests( argc, argv, "/tmp/unittest" ));
}