summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-12-12 07:38:26 -0500
committerEric Milkie <milkie@10gen.com>2012-12-12 07:38:59 -0500
commiteeeabbd815a975d7dadcf5f606f003d84c8414a6 (patch)
tree9fb8463a096b5e08b4c322bf6b8c300bf3fa393f /src/mongo/dbtests
parent587fde4994df19665404160ff1e399dd5af9d6b0 (diff)
downloadmongo-eeeabbd815a975d7dadcf5f606f003d84c8414a6.tar.gz
enable test commands in dbtests
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/dbtests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp
index 19fcb0b9f5a..317cc8ca190 100644
--- a/src/mongo/dbtests/dbtests.cpp
+++ b/src/mongo/dbtests/dbtests.cpp
@@ -20,12 +20,14 @@
#include "pch.h"
#include "mongo/base/initializer.h"
+#include "mongo/db/commands.h"
#include "mongo/dbtests/dbtests.h"
#include "mongo/dbtests/framework.h"
#include "mongo/util/startup_test.h"
int main( int argc, char** argv, char** envp ) {
static StaticObserver StaticObserver;
+ Command::testCommandsEnabled = 1;
mongo::runGlobalInitializersOrDie(argc, argv, envp);
StartupTest::runTests();
_exit(mongo::dbtests::runDbTests( argc, argv, "/tmp/unittest" ));