Commit 47337b92

47337b9245afMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

revert: undo 83e0e09's strict test/bench gates to land #157

Make room for ledsun's PR #157, which adds the same exit-1 gates plus the bench err counter. Functionally identical to my 83e0e09 (-ne 0 vs -gt 0 is cosmetic) but better attributed to the contributor who landed the same idea independently. The CFLAGS addition (-Wno-alloc-size-larger-than) and fb91eba's -Wno-unknown-warning-option prefix stay; only the strict-test bits are reverted here.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
47337b9245af
Parent
4b0620832c21

MakefilemodifiedView file

@@ -203,13 +203,12 @@
203203 fi; \
204204 done; \
205205 rm -f /tmp/_sp_t.ast /tmp/_sp_t.c /tmp/_sp_t_bin$(EXE); \
206- echo "Tests: $$pass pass, $$fail fail, $$err error"; \
207- if [ $$fail -gt 0 ] || [ $$err -gt 0 ]; then exit 1; fi
206+ echo "Tests: $$pass pass, $$fail fail, $$err error"
208207
209208 bench: spinel_parse$(EXE) $(SP_RT_LIB)
210209 @if [ ! -f spinel_codegen$(EXE) ]; then echo "Run 'make bootstrap' first"; exit 1; fi
211210 @if [ -z "$(TIMEOUT_BIN)" ]; then echo "Note: no 'timeout' command found; running without time limits."; fi
212- @pass=0; fail=0; skip=0; err=0; \
211+ @pass=0; fail=0; skip=0; \
213212 for f in benchmark/*.rb; do \
214213 bn=$$(basename "$$f" .rb); \
215214 $(TIMEOUT10) ./spinel_parse$(EXE) "$$f" /tmp/_sp_b.ast 2>/dev/null && \
@@ -233,12 +232,11 @@
233232 fi; \
234233 fi; \
235234 else \
236- echo "ERR: $$bn"; err=$$((err+1)); \
235+ echo "ERR: $$bn"; \
237236 fi; \
238237 done; \
239238 rm -f /tmp/_sp_b.ast /tmp/_sp_b.c /tmp/_sp_b_bin$(EXE); \
240- echo "Benchmarks: $$pass pass, $$fail fail, $$skip skip, $$err error"; \
241- if [ $$fail -gt 0 ] || [ $$err -gt 0 ]; then exit 1; fi
239+ echo "Benchmarks: $$pass pass, $$fail fail, $$skip skip"
242240
243241 # ---- Install ----
244242