[Libreoffice-commits] core.git: solenv/bin solenv/gbuild
Miklos Vajna
vmiklos at collabora.co.uk
Sun Dec 7 10:40:25 PST 2014
solenv/bin/unittest-failed.sh | 14 +++++++++++++-
solenv/gbuild/CppunitTest.mk | 2 +-
2 files changed, 14 insertions(+), 2 deletions(-)
New commits:
commit 8414b65053dc2914e81a93d9ccd0653ffeea5f2c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Sun Dec 7 19:24:00 2014 +0100
solenv: no need to advertise lldb/devenv on Linux in unittest-failed.sh
Change-Id: I1dd1b7804defdf363599c17dee3ab1333cf46ee7
diff --git a/solenv/bin/unittest-failed.sh b/solenv/bin/unittest-failed.sh
index b49ddd7..277c908 100755
--- a/solenv/bin/unittest-failed.sh
+++ b/solenv/bin/unittest-failed.sh
@@ -22,9 +22,21 @@ cat << EOF
Error: a unit test failed, please do one of:
export DEBUGCPPUNIT=TRUE # for exception catching
-export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux
+EOF
+if [ "$3" == "WNT" ]; then
+cat << EOF
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive debugging in Visual Studio
+EOF
+elif [ "$3" == "MACOSX" ]; then
+cat << EOF
export CPPUNITTRACE="lldb --" # for interactive debugging on OSX
+EOF
+else
+cat << EOF
+export CPPUNITTRACE="gdb --args" # for interactive debugging on Linux
+EOF
+fi
+cat << EOF
export VALGRIND=memcheck # for memory checking
and retry using: make $1Test_$2
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 4e3d54a..47f1110 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -101,7 +101,7 @@ $(call gb_CppunitTest_get_target,%) :| $(gb_CppunitTest_CPPTESTDEPS)
|| ($(if $(value gb_CppunitTest_postprocess), \
RET=$$?; \
$(call gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core,$$RET) >> $@.log 2>&1;) \
- cat $@.log; $(SRCDIR)/solenv/bin/unittest-failed.sh Cppunit $*))))
+ cat $@.log; $(SRCDIR)/solenv/bin/unittest-failed.sh Cppunit $* $(OS)))))
define gb_CppunitTest_CppunitTest
$(call gb_CppunitTest__CppunitTest_impl,$(1),$(call gb_CppunitTest_get_linktarget,$(1)))
More information about the Libreoffice-commits
mailing list