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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user