diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-06-03 13:51:01 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-11 01:11:50 +0000 |
commit | c08a726e61157ae501c28cf7e222e16d49954fbf (patch) | |
tree | 50e0cdc58f93a42dcba3a594051f9def44c457b8 /src/mongo/embedded/mongoc_embedded | |
parent | f664f948ad0876f0537958cb5ab29a857f1e4924 (diff) | |
download | mongo-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.cpp | 6 |
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; |