summaryrefslogtreecommitdiff
path: root/solenv/gbuild/CppunitTest.mk
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-18 12:05:10 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-18 12:19:33 +0200
commit29b59f2e87d1b00ab6a1f4cc4e960603974992bc (patch)
tree4f1ee3ef9b8a35548c9062e7b01cae5deade1788 /solenv/gbuild/CppunitTest.mk
parent54d0673ba422d6408d8b2d39493a3a7bb4f56037 (diff)
gdb-core-bt: don't talk about core files without a reason.
When exit code is <128, then the test probably just failed, it did not get a SIGSEGV or similar signal, so it's expected that no core file is created. Change-Id: Ie9e3599bd6738c04afacb95000d09f9dd2a5c426
Diffstat (limited to 'solenv/gbuild/CppunitTest.mk')
-rw-r--r--solenv/gbuild/CppunitTest.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 61cd7177550c..a4478eea355d 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -97,9 +97,9 @@ $(call gb_CppunitTest_get_target,%) :| $(gb_CppunitTest_CPPTESTDEPS)
$(call gb_CppunitTest__make_args) \
$(if $(gb_CppunitTest__interactive),, \
> $@.log 2>&1 \
- || (cat $@.log && $(UNIT_FAILED_MSG) \
+ || (RET=$$? && cat $@.log && $(UNIT_FAILED_MSG) \
$(if $(value gb_CppunitTest_postprocess), \
- && $(call gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core)) \
+ && $(call gb_CppunitTest_postprocess,$(gb_CppunitTest_CPPTESTCOMMAND),$@.core,$$RET)) \
&& false))))
define gb_CppunitTest_CppunitTest