Merge "fs_mgr: liblp test: give ownership of environment to gtest"
am: 08c6d1a5d1
Change-Id: I115addc55de3b3cc67f935d866ac3e5d0fa4a039
This commit is contained in:
commit
6a4c7385af
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue