authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-11-21 19:43:24+01:00
committergravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2023-11-24 01:11:12+01:00
log28e1d8285752b320f186090993cdf0ff7a048c85
treecb7f61f2e4e9513cf1feef8c3487c4741a687c29
parent54f4abae2f811c6de1d5c5156961e1bd75405aa6
signaturebadge-check Signed by SSH key SHA256:CQ99aPxq+RueiL9u7z0FEki5Fm7V6T8q4PrEGmINrA4

spirv: disable failing tests


5 files changed, 17 insertions(+), 0 deletions(-)

test/behavior/align.zig+1
......@@ -27,6 +27,7 @@ test "large alignment of local constant" {
2727test "slicing array of length 1 can not assume runtime index is always zero" {
2828 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
2929 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
30 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
3031
3132 var runtime_index: usize = 1;
3233 _ = &runtime_index;
test/behavior/basic.zig+2
......@@ -572,6 +572,8 @@ test "comptime cast fn to ptr" {
572572}
573573
574574test "equality compare fn ptrs" {
575 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // Uses function pointers
576
575577 var a = &emptyFn;
576578 _ = &a;
577579 try expect(a == a);
test/behavior/slice.zig+1
......@@ -853,6 +853,7 @@ test "slice with dereferenced value" {
853853
854854test "empty slice ptr is non null" {
855855 if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO
856 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // Test assumes `undefined` is non-zero
856857
857858 {
858859 const empty_slice: []u8 = &[_]u8{};
test/behavior/struct.zig+1
......@@ -1513,6 +1513,7 @@ test "discarded struct initialization works as expected" {
15131513
15141514test "function pointer in struct returns the struct" {
15151515 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
1516 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
15161517
15171518 const A = struct {
15181519 const A = @This();
test/behavior/union.zig+12
......@@ -1929,6 +1929,8 @@ test "inner struct initializer uses union layout" {
19291929}
19301930
19311931test "inner struct initializer uses packed union layout" {
1932 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
1933
19321934 const namespace = struct {
19331935 const U = packed union {
19341936 a: packed struct {
......@@ -1953,6 +1955,8 @@ test "inner struct initializer uses packed union layout" {
19531955}
19541956
19551957test "extern union initialized via reintepreted struct field initializer" {
1958 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
1959
19561960 const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
19571961
19581962 const U = extern union {
......@@ -1970,6 +1974,8 @@ test "extern union initialized via reintepreted struct field initializer" {
19701974}
19711975
19721976test "packed union initialized via reintepreted struct field initializer" {
1977 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
1978
19731979 const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
19741980
19751981 const U = packed union {
......@@ -1988,6 +1994,8 @@ test "packed union initialized via reintepreted struct field initializer" {
19881994}
19891995
19901996test "store of comptime reinterpreted memory to extern union" {
1997 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
1998
19911999 const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
19922000
19932001 const U = extern union {
......@@ -2008,6 +2016,8 @@ test "store of comptime reinterpreted memory to extern union" {
20082016}
20092017
20102018test "store of comptime reinterpreted memory to packed union" {
2019 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
2020
20112021 const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
20122022
20132023 const U = packed union {
......@@ -2063,6 +2073,8 @@ test "pass register-sized field as non-register-sized union" {
20632073}
20642074
20652075test "circular dependency through pointer field of a union" {
2076 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
2077
20662078 const S = struct {
20672079 const UnionInner = extern struct {
20682080 outer: UnionOuter = std.mem.zeroes(UnionOuter),