authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-04 16:20:33-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-04 16:20:33-07:00
logecb4293afe673331b81d6f9e917024b31d2ecdc0
tree71ed29fcf13e4394b7fd1e7cb7c9a7fae5a61e2c
parentd65e248ed130da21e554807c8ce6add9773e0670

stage2: disable unit tests when building with stage1

They trip LLVM assertions and spirv is not needed to bootstrap. Not important for these tests to pass with stage1.

1 files changed, 10 insertions(+), 0 deletions(-)

src/codegen/spirv/Section.zig+10
......@@ -328,6 +328,8 @@ fn extendedUnionSize(comptime Operand: type, operand: Operand) usize {
328328}
329329
330330test "SPIR-V Section emit() - no operands" {
331 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
332
331333 var section = Section{};
332334 defer section.deinit(std.testing.allocator);
333335
......@@ -337,6 +339,8 @@ test "SPIR-V Section emit() - no operands" {
337339}
338340
339341test "SPIR-V Section emit() - simple" {
342 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
343
340344 var section = Section{};
341345 defer section.deinit(std.testing.allocator);
342346
......@@ -353,6 +357,8 @@ test "SPIR-V Section emit() - simple" {
353357}
354358
355359test "SPIR-V Section emit() - string" {
360 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
361
356362 var section = Section{};
357363 defer section.deinit(std.testing.allocator);
358364
......@@ -378,6 +384,8 @@ test "SPIR-V Section emit() - string" {
378384}
379385
380386test "SPIR-V Section emit()- extended mask" {
387 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
388
381389 var section = Section{};
382390 defer section.deinit(std.testing.allocator);
383391
......@@ -402,6 +410,8 @@ test "SPIR-V Section emit()- extended mask" {
402410}
403411
404412test "SPIR-V Section emit() - extended union" {
413 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
414
405415 var section = Section{};
406416 defer section.deinit(std.testing.allocator);
407417