Skip to content

Commit 2c7f83c

Browse files
committed
Fix size-matrix CI: skip WAT-dependent differential tests when WAT disabled
The two loadFromWat-based differential tests (fibonacci, loop) lacked the enable_wat guard that all other WAT tests in types.zig already have. This caused size-matrix job failure with -Dwat=false.
1 parent 61f5d9c commit 2c7f83c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vm.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9954,6 +9954,7 @@ test "Differential — i32.add interpreter vs JIT" {
99549954
}
99559955

99569956
test "Differential — recursive fibonacci interpreter vs JIT" {
9957+
if (!build_options.enable_wat) return error.SkipZigTest;
99579958
const types = @import("types.zig");
99589959
const WasmModule = types.WasmModule;
99599960
const mod = try WasmModule.loadFromWat(testing.allocator,
@@ -9972,6 +9973,7 @@ test "Differential — recursive fibonacci interpreter vs JIT" {
99729973
}
99739974

99749975
test "Differential — loop with accumulator interpreter vs JIT" {
9976+
if (!build_options.enable_wat) return error.SkipZigTest;
99759977
const types = @import("types.zig");
99769978
const WasmModule = types.WasmModule;
99779979
const mod = try WasmModule.loadFromWat(testing.allocator,

0 commit comments

Comments
 (0)