From 5eb4c5e93b0f0a3fd9cded5e086086d07cb7c92d Mon Sep 17 00:00:00 2001 From: Hannah Meeks Date: Mon, 18 Jul 2022 16:42:37 +0100 Subject: Mend python support for lldb cppunit tests. Change-Id: I02f4872ac75d82f2d77c1854ce040b72883b484a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137204 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- solenv/gbuild/CppunitTest.mk | 2 +- solenv/gbuild/PythonTest.mk | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'solenv') diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index cae6e2a2f9be..821d1d6f2c74 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -137,7 +137,7 @@ else $(if $(GLIBCXX_FORCE_NEW),GLIBCXX_FORCE_NEW=$(GLIBCXX_FORCE_NEW)) \ $(if $(strip $(PYTHON_URE)),\ PYTHONDONTWRITEBYTECODE=1) \ - $(if $(strip $(CPPUNITTRACE)),\ + $(if $(filter gdb,$(CPPUNITTRACE)),\ PYTHONWARNINGS=default) \ $(ICECREAM_RUN) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_RR) \ $(gb_CppunitTest_CPPTESTCOMMAND) \ diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk index 4e81261d2354..09f039771895 100644 --- a/solenv/gbuild/PythonTest.mk +++ b/solenv/gbuild/PythonTest.mk @@ -60,6 +60,8 @@ else TestUserDir="$(call gb_Helper_make_url,$(dir $(call gb_PythonTest_get_target,$*)))" \ PYTHONDONTWRITEBYTECODE=1 \ $(gb_TEST_ENV_VARS) \ + $(if $(filter gdb,$(CPPUNITTRACE)),\ + PYTHONWARNINGS=default) \ $(ICECREAM_RUN) $(gb_PythonTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_RR) \ $(gb_PythonTest_COMMAND) \ $(if $(PYTHON_TEST_NAME),$(PYTHON_TEST_NAME),$(MODULES)) \ -- cgit