solenv/gbuild/CppunitTest.mk |    8 ++++----
 solenv/gbuild/PythonTest.mk  |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 2736aff1f9a5c32c13993ff540e599291b7688ca
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Tue Apr 30 23:14:26 2013 +0200

    ...and fix gb_UNIT_FAILED_MSG output
    
    Change-Id: I0fa3036c5be34eb598e0390430028ae818ebef0d

diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index cb12753..3daa202 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -29,10 +29,10 @@
 
 # CppunitTest class
 
-
-# 1st parameter gives the name of the unit test that failed
+# $(1): "Cppunit" or "Python"
+# $(2): the name of the unit test that failed
 define gb_UNIT_FAILED_MSG
-echo; echo "Error: a unit test failed, please do one of:"; echo; echo "export 
DEBUGCPPUNIT=TRUE            \# for exception catching"; echo "export 
GDBCPPUNITTRACE=\"gdb --args\" \# for interactive debugging"; echo "export 
VALGRIND=memcheck            \# for memory checking" ; echo ; echo "and retry 
using: make CppunitTest_$(1)"
+printf '\nError: a unit test failed, please do one of:\n\nexport 
DEBUGCPPUNIT=TRUE            # for exception catching\nexport 
GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport 
VALGRIND=memcheck            # for memory checking\n\nand retry using: make 
%sTest_%s' $(1) $(2)
 endef
 
 ifeq ($(strip $(DEBUGCPPUNIT)),TRUE)
@@ -100,7 +100,7 @@ $(call gb_CppunitTest_get_target,%) :| 
$(gb_CppunitTest_CPPTESTDEPS)
                $(call gb_CppunitTest__make_args) \
                $(if $(gb_CppunitTest__interactive),, \
                        > $@.log 2>&1 \
-                       || (RET=$$? && cat $@.log && $(call 
gb_UNIT_FAILED_MSG,$*) \
+                       || (RET=$$? && cat $@.log && $(call 
gb_UNIT_FAILED_MSG,Cppunit,$*) \
                                $(if $(value gb_CppunitTest_postprocess), \
                                        && $(call 
gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core,$$RET)) \
                                && false))))
diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk
index a7b398f..9b450e7 100644
--- a/solenv/gbuild/PythonTest.mk
+++ b/solenv/gbuild/PythonTest.mk
@@ -46,7 +46,7 @@ $(call gb_PythonTest_get_target,%) :
                        $(MODULES) \
                $(if $(gb_CppunitTest__interactive),, \
                        > $@.log 2>&1 \
-                       || (cat $@.log && $(call gb_UNIT_FAILED_MSG,$*) \
+                       || (cat $@.log && $(call gb_UNIT_FAILED_MSG,Python,$*) \
                                $(if $(value gb_CppunitTest_postprocess), \
                                        && $(call 
gb_CppunitTest_postprocess,$(gb_PythonTest_EXECUTABLE_GDB),$@.core,139)) \
                                && false))))
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to