commit ecb4293afe673331b81d6f9e917024b31d2ecdc0 (tree)
parent d65e248ed130da21e554807c8ce6add9773e0670
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 4 Jul 2022 16:20:33 -0700
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.
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/codegen/spirv/Section.zig b/src/codegen/spirv/Section.zig
@@ -328,6 +328,8 @@ fn extendedUnionSize(comptime Operand: type, operand: Operand) usize {
}
test "SPIR-V Section emit() - no operands" {
+ if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
+
var section = Section{};
defer section.deinit(std.testing.allocator);
@@ -337,6 +339,8 @@ test "SPIR-V Section emit() - no operands" {
}
test "SPIR-V Section emit() - simple" {
+ if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
+
var section = Section{};
defer section.deinit(std.testing.allocator);
@@ -353,6 +357,8 @@ test "SPIR-V Section emit() - simple" {
}
test "SPIR-V Section emit() - string" {
+ if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
+
var section = Section{};
defer section.deinit(std.testing.allocator);
@@ -378,6 +384,8 @@ test "SPIR-V Section emit() - string" {
}
test "SPIR-V Section emit()- extended mask" {
+ if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
+
var section = Section{};
defer section.deinit(std.testing.allocator);
@@ -402,6 +410,8 @@ test "SPIR-V Section emit()- extended mask" {
}
test "SPIR-V Section emit() - extended union" {
+ if (@import("builtin").zig_backend == .stage1) return error.SkipZigTest;
+
var section = Section{};
defer section.deinit(std.testing.allocator);