From 8a9912eaf81bab73a12621a4c0987c37a865fe50 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 26 Aug 2020 22:02:02 +0200 Subject: Tests: fail automated tests on memory leaks and other internal errors This adds a new `--debug-exit-on-error` flag. When it is set, Blender will abort with a non-zero exit code when there are internal errors. Currently, "internal errors" includes memory leaks detected by guardedalloc and error/fatal log entries in clog. The new flag is passed to Blender in various places where automated tests are run. Furthermore, the `--debug-memory` flag is used in tests, because that makes the verbose output more useful, when dealing with memory leaks. Reviewers: brecht, sergey Differential Revision: https://developer.blender.org/D8665 --- tests/python/eevee_render_tests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/python/eevee_render_tests.py') diff --git a/tests/python/eevee_render_tests.py b/tests/python/eevee_render_tests.py index a7130136d0a..a90d7730ace 100644 --- a/tests/python/eevee_render_tests.py +++ b/tests/python/eevee_render_tests.py @@ -103,6 +103,8 @@ def get_arguments(filepath, output_filepath): "-noaudio", "--factory-startup", "--enable-autoexec", + "--debug-memory", + "--debug-exit-on-error", filepath, "-E", "BLENDER_EEVEE", "-P", -- cgit v1.2.3