Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-08-19 19:18:20 +0300
committerJacques Lucke <jacques@blender.org>2020-08-19 19:18:20 +0300
commit48bd6e71026a1ad1e910a1f544c11550115a4b46 (patch)
treeca0d6b14a02a9b3886956c49c6efd09d6f6c6240 /tests
parenteb9055a572c391e707e6a300067740d7ad4e0197 (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.cc1
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);