Merge "fs_mgr: liblp test: give ownership of environment to gtest"

This commit is contained in:
Treehugger Robot 2019-07-25 03:36:46 +00:00 committed by Gerrit Code Review
commit 08c6d1a5d1

View file

@ -31,8 +31,7 @@ class Environment : public ::testing::Environment {
}; };
int main(int argc, char** argv) { int main(int argc, char** argv) {
std::unique_ptr<Environment> env(new Environment); ::testing::AddGlobalTestEnvironment(new Environment);
::testing::AddGlobalTestEnvironment(env.get());
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }