make CPPUNITTRACE=TRUE a shortcut for debuging on WNT
Change-Id: Ie834e1e1592163977435f0af6dde04c4fe86c1bf Reviewed-on: https://gerrit.libreoffice.org/19977 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
This commit is contained in:
committed by
Björn Michaelsen
parent
474f5eebb8
commit
4f76e46290
@@ -22,12 +22,12 @@
|
||||
gb_CppunitTest_UNITTESTFAILED ?= $(GBUILDDIR)/platform/unittest-failed-default.sh
|
||||
gb_CppunitTest_PYTHONDEPS ?= $(call gb_Library_get_target,pyuno_wrapper) $(if $(SYSTEM_PYTHON),,$(call gb_Package_get_target,python3))
|
||||
|
||||
ifeq ($(strip $(DEBUGCPPUNIT)),TRUE)
|
||||
gb_CppunitTest_GDBTRACE := gdb -nx -ex "add-auto-load-safe-path $(INSTDIR)" --batch --command=$(SRCDIR)/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args
|
||||
else ifneq ($(strip $(CPPUNITTRACE)),)
|
||||
ifeq ($(strip $(gb_CppunitTest_GDBTRACE)),)
|
||||
ifneq ($(strip $(CPPUNITTRACE)),)
|
||||
gb_CppunitTest_GDBTRACE := $(CPPUNITTRACE)
|
||||
gb_CppunitTest__interactive := $(true)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(VALGRIND)),)
|
||||
gb_CppunitTest_VALGRINDTOOL := valgrind --tool=$(VALGRIND) --num-callers=50 --error-exitcode=1 --trace-children=yes --trace-children-skip='*/java,*/gij'
|
||||
|
@@ -190,6 +190,12 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
|
||||
endef
|
||||
|
||||
# CppunitTest class
|
||||
|
||||
ifeq ($(strip $(DEBUGCPPUNIT)),TRUE)
|
||||
gb_CppunitTest_GDBTRACE := gdb -nx -ex "add-auto-load-safe-path $(INSTDIR)" --batch --command=$(SRCDIR)/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args
|
||||
endif
|
||||
|
||||
# ExternalProject class
|
||||
|
||||
gb_ExternalProject_use_autoconf :=
|
||||
|
@@ -439,6 +439,10 @@ endef
|
||||
gb_PythonTest_PRECOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND)
|
||||
gb_PythonTest_DEPS := $(call gb_Package_get_target,python3)
|
||||
|
||||
ifeq ($(strip $(CPPUNITTRACE)),TRUE)
|
||||
gb_CppunitTest_GDBTRACE := '$(DEVENV)' /debugexe
|
||||
endif
|
||||
|
||||
# SrsPartTarget class
|
||||
|
||||
ifeq ($(gb_FULLDEPS),$(true))
|
||||
|
@@ -19,6 +19,7 @@
|
||||
cat << EOF
|
||||
|
||||
Error: a unit test failed, please do one of:
|
||||
make $1Test_$2 CPPUNITTRACE=TRUE # which is a shortcut for the following line
|
||||
make $1Test_$2 CPPUNITTRACE="'$DEVENV' /debugexe" # for interactive debugging in Visual Studio
|
||||
make $1Test_$2 CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking (install Dr.Memory first, and put it to your PATH)
|
||||
|
||||
|
Reference in New Issue
Block a user