summaryrefslogtreecommitdiff
path: root/src/mongo/embedded/mongoc_embedded
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-06-03 13:51:01 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-11 01:11:50 +0000
commitc08a726e61157ae501c28cf7e222e16d49954fbf (patch)
tree50e0cdc58f93a42dcba3a594051f9def44c457b8 /src/mongo/embedded/mongoc_embedded
parentf664f948ad0876f0537958cb5ab29a857f1e4924 (diff)
downloadmongo-c08a726e61157ae501c28cf7e222e16d49954fbf.tar.gz
SERVER-48367 Remove all _envp usage
Diffstat (limited to 'src/mongo/embedded/mongoc_embedded')
-rw-r--r--src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp b/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
index eff6c417320..6d8750b1058 100644
--- a/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
+++ b/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
@@ -259,12 +259,11 @@ using StatusPtr = std::unique_ptr<mongo_embedded_v1_status, StatusDestroy>;
// These test functions cannot use the main() defined for unittests because they
// call runGlobalInitializers(). The embedded C API calls mongoDbMain() which
// calls runGlobalInitializers().
-int main(int argc, char** argv, char** envp) {
+int main(int argc, char** argv) {
moe::OptionsParser parser;
moe::Environment environment;
moe::OptionSection options;
- std::map<std::string, std::string> env;
auto ret = mongo::embedded::addMongocEmbeddedTestOptions(&options);
if (!ret.isOK()) {
@@ -272,8 +271,7 @@ int main(int argc, char** argv, char** envp) {
return EXIT_FAILURE;
}
- std::vector<std::string> argVector(argv, argv + argc);
- ret = parser.run(options, argVector, env, &environment);
+ ret = parser.run(options, std::vector<std::string>(argv, argv + argc), &environment);
if (!ret.isOK()) {
std::cerr << options.helpString();
return EXIT_FAILURE;