Commit: 48bd6e71026a1ad1e910a1f544c11550115a4b46 Author: Jacques Lucke Date: Wed Aug 19 18:18:20 2020 +0200 Branches: master https://developer.blender.org/rB48bd6e71026a1ad1e910a1f544c11550115a4b46
Tests: use guarded allocator in tests This helps finding memory leaks in tests. Reviewers: brecht Differential Revision: https://developer.blender.org/D8631 =================================================================== M tests/gtests/testing/testing_main.cc =================================================================== diff --git a/tests/gtests/testing/testing_main.cc b/tests/gtests/testing/testing_main.cc index 36d39a1b3b9..e9313b31909 100644 --- a/tests/gtests/testing/testing_main.cc +++ b/tests/gtests/testing/testing_main.cc @@ -48,6 +48,7 @@ const std::string &flags_test_release_dir() int main(int argc, char **argv) { + MEM_use_guarded_allocator(); MEM_init_memleak_detection(); testing::InitGoogleTest(&argc, argv); BLENDER_GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true); _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
