summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-07 15:57:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-07 15:57:05 +0100
commit1b20921ae00609fd4a2cd5a5241083b886a45346 (patch)
tree5ad0d1c4aab82ceacdd6d603dc9b676a763c6044 /solenv
parent7f7d116c2b723123e7374cdbb77c47fc067a828f (diff)
Include backtrace in log
Change-Id: I76306ac61365282ef2de4869c1c8e21e044304ff
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/CppunitTest.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index f5ab7976a589..7ebfc07c26f5 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -91,9 +91,10 @@ $(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,Cppunit,$*) \
+ || (RET=$$? \
$(if $(value gb_CppunitTest_postprocess), \
- && $(call gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core,$$RET)) \
+ && $(call gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core,$$RET) >> $@.log 2>&1) \
+ && cat $@.log && $(call gb_UNIT_FAILED_MSG,Cppunit,$*) \
&& false))))
define gb_CppunitTest_CppunitTest