Tests: use guarded allocator in tests

This helps finding memory leaks in tests.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D8631
This commit is contained in:
Jacques Lucke
2020-08-19 18:18:20 +02:00
parent eb9055a572
commit 48bd6e7102

View File

@@ -48,6 +48,7 @@ const std::string &flags_test_release_dir()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
MEM_use_guarded_allocator();
MEM_init_memleak_detection(); MEM_init_memleak_detection();
testing::InitGoogleTest(&argc, argv); testing::InitGoogleTest(&argc, argv);
BLENDER_GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true); BLENDER_GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);