Commit b5903e3d

b5903e3d38dfMerged

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

Description

build: skip int_overflow_raises under --int-overflow=promote

The test pins raise-mode semantics (RangeError on overflow); under promote mode the same code auto-promotes to bigint and the expected output diverges by design -- the two modes are mutually exclusive for this test.

Filter the test out of TESTS when SPINEL_INT_OVERFLOW=promote so the runner doesn't report it as a regression.

Default mode: 633/0/0 (unchanged, test still runs). Promote mode: 624/2/6 (was 624/3/6, one fundamentally-incompatible test removed from the regression set).

Co-Authored-By: Claude Opus 4.7 [email protected]

Details

Commit
b5903e3d38df
Parent
2e6dae6ccb52

MakefilemodifiedView file

@@ -375,6 +375,12 @@
375375 # ---- Test ----
376376
377377 TESTS := $(wildcard test/*.rb)
378+# Mode-incompatible tests: int_overflow_raises pins raise-mode semantics
379+# (RangeError on overflow); under --int-overflow=promote the same code
380+# auto-promotes to bigint and the expected output diverges by design.
381+ifeq ($(SPINEL_INT_OVERFLOW),promote)
382+TESTS := $(filter-out test/int_overflow_raises.rb,$(TESTS))
383+endif
378384 TEST_TARGETS := $(patsubst test/%.rb,build/test-results/%.ok,$(TESTS))
379385
380386 # `make test` is incremental via mtime tracking on .ok files;