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.
master
Michael Matz 2017-02-11 14:27:21 +01:00
parent ee5425fe95
commit 15f990bf71
1 changed files with 2 additions and 2 deletions

View File

@ -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