diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-19 19:18:20 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-19 19:18:20 +0300 |
commit | 48bd6e71026a1ad1e910a1f544c11550115a4b46 (patch) | |
tree | ca0d6b14a02a9b3886956c49c6efd09d6f6c6240 /tests | |
parent | eb9055a572c391e707e6a300067740d7ad4e0197 (diff) |
Tests: use guarded allocator in tests
This helps finding memory leaks in tests.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D8631
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/testing/testing_main.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |