forked from qt-creator/qt-creator
UnitTests: Fix double deletion
Change-Id: Id28f739a3f6b0c200386edf67914886ae06e2999 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -61,8 +61,8 @@ int main(int argc, char *argv[])
|
|||||||
benchmark::Initialize(&argc, argv);
|
benchmark::Initialize(&argc, argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Environment environment;
|
auto environment = std::make_unique<Environment>();
|
||||||
testing::AddGlobalTestEnvironment(&environment);
|
testing::AddGlobalTestEnvironment(environment.release());
|
||||||
|
|
||||||
int testsHaveErrors = RUN_ALL_TESTS();
|
int testsHaveErrors = RUN_ALL_TESTS();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user