mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
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.
This commit is contained in:
parent
ee5425fe95
commit
15f990bf71
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user