summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah Meeks <hmeeks4135@gmail.com>2022-07-18 16:42:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-07-18 20:22:03 +0200
commit5eb4c5e93b0f0a3fd9cded5e086086d07cb7c92d (patch)
tree19df705a05fcc590485be07a6b6f26c3054d75dd
parent278e97ab0272e9c1975bd7780697067f0b91bd46 (diff)
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 <sbergman@redhat.com>
-rw-r--r--solenv/gbuild/CppunitTest.mk2
-rw-r--r--solenv/gbuild/PythonTest.mk2
2 files changed, 3 insertions, 1 deletions
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)) \