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 {...@@ -328,6 +328,8 @@ fn extendedUnionSize(comptime Operand: type, operand: Operand) usize {
328}328}
329329
330test "SPIR-V Section emit() - no operands" {330test "SPIR-V Section emit() - no operands" {
331 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
332
331 var section = Section{};333 var section = Section{};
332 defer section.deinit(std.testing.allocator);334 defer section.deinit(std.testing.allocator);
333335
...@@ -337,6 +339,8 @@ test "SPIR-V Section emit() - no operands" {...@@ -337,6 +339,8 @@ test "SPIR-V Section emit() - no operands" {
337}339}
338340
339test "SPIR-V Section emit() - simple" {341test "SPIR-V Section emit() - simple" {
342 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
343
340 var section = Section{};344 var section = Section{};
341 defer section.deinit(std.testing.allocator);345 defer section.deinit(std.testing.allocator);
342346
...@@ -353,6 +357,8 @@ test "SPIR-V Section emit() - simple" {...@@ -353,6 +357,8 @@ test "SPIR-V Section emit() - simple" {
353}357}
354358
355test "SPIR-V Section emit() - string" {359test "SPIR-V Section emit() - string" {
360 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
361
356 var section = Section{};362 var section = Section{};
357 defer section.deinit(std.testing.allocator);363 defer section.deinit(std.testing.allocator);
358364
...@@ -378,6 +384,8 @@ test "SPIR-V Section emit() - string" {...@@ -378,6 +384,8 @@ test "SPIR-V Section emit() - string" {
378}384}
379385
380test "SPIR-V Section emit()- extended mask" {386test "SPIR-V Section emit()- extended mask" {
387 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
388
381 var section = Section{};389 var section = Section{};
382 defer section.deinit(std.testing.allocator);390 defer section.deinit(std.testing.allocator);
383391
...@@ -402,6 +410,8 @@ test "SPIR-V Section emit()- extended mask" {...@@ -402,6 +410,8 @@ test "SPIR-V Section emit()- extended mask" {
402}410}
403411
404test "SPIR-V Section emit() - extended union" {412test "SPIR-V Section emit() - extended union" {
413 if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
414
405 var section = Section{};415 var section = Section{};
406 defer section.deinit(std.testing.allocator);416 defer section.deinit(std.testing.allocator);
407417