From 15f990bf71d24a029aeede081b56fe7b92516698 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 11 Feb 2017 14:27:21 +0100 Subject: [PATCH] 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. --- tests/tests2/Makefile | 4 ++-- 1 file 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