aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-02-11 14:27:21 +0100
committerMichael Matz <matz@suse.de>2017-02-11 14:27:21 +0100
commit15f990bf71d24a029aeede081b56fe7b92516698 (patch)
treed125b1882e2a6b7313213ea00b3bbe47467dce37
parentee5425fe952fdf02fdcdf94f440ee482b6be61ad (diff)
downloadtinycc-15f990bf71d24a029aeede081b56fe7b92516698.tar.gz
tinycc-15f990bf71d24a029aeede081b56fe7b92516698.tar.bz2
Fix testsuite invocations
The return code of $(FILTER) clobbers the return code of TCC itself. So just prepend messages to the generated output file and ignore return codes.
-rw-r--r--tests/tests2/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile
index d0cd664..59b2438 100644
--- a/tests/tests2/Makefile
+++ b/tests/tests2/Makefile
@@ -56,8 +56,8 @@ all test: $(filter-out $(SKIP),$(TESTS))
@if test -z "$(NORUN)"; then \
$(TCC) -run $< $(ARGS) $(FILTER) >$*.output 2>&1 || true; \
else \
- $(TCC) $< -o ./$*.exe $(FILTER) 2>&1 && \
- ./$*.exe $(ARGS) >$*.output 2>&1 || true; \
+ $(TCC) $< -o ./$*.exe $(FILTER) >$*.output 2>&1; \
+ ./$*.exe $(ARGS) >>$*.output 2>&1 || true; \
fi
@diff -Nbu $(SRC)/$*.expect $*.output && rm -f $*.output $*.exe