summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/unittest_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/unittest/unittest_main.cpp')
-rw-r--r--src/mongo/unittest/unittest_main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/unittest/unittest_main.cpp b/src/mongo/unittest/unittest_main.cpp
index 39e59923d10..a43805b0944 100644
--- a/src/mongo/unittest/unittest_main.cpp
+++ b/src/mongo/unittest/unittest_main.cpp
@@ -50,12 +50,14 @@ using mongo::Status;
namespace moe = ::mongo::optionenvironment;
-int main(int argc, char** argv, char** envp) {
+int main(int argc, char** argv) {
+ std::vector<std::string> argVec(argv, argv + argc);
+
::mongo::clearSignalMask();
::mongo::setupSynchronousSignalHandlers();
::mongo::TestingProctor::instance().setEnabled(true);
- ::mongo::runGlobalInitializersOrDie(argc, argv, envp);
+ ::mongo::runGlobalInitializersOrDie(argVec);
::mongo::setTestCommandsEnabled(true);
moe::OptionSection options;
@@ -68,9 +70,7 @@ int main(int argc, char** argv, char** envp) {
moe::OptionsParser parser;
moe::Environment environment;
- std::map<std::string, std::string> env;
- std::vector<std::string> argVector(argv, argv + argc);
- Status ret = parser.run(options, argVector, env, &environment);
+ Status ret = parser.run(options, argVec, &environment);
if (!ret.isOK()) {
std::cerr << options.helpString();
return EXIT_FAILURE;