authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-19 23:13:29-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-09-20 18:33:01-07:00
loged7ff0b693037078f451a7c6c1124611060f4892
tree4d87c3bbf89f868379479c0183627aba7984abb6
parent0e16d933be12d00b79cbd87c13d71ad164fe5524

allow some test cases to regress

tracked by #24061 - these should be re-enabled once that is solved.

5 files changed, 16 insertions(+), 41 deletions(-)

lib/std/Thread.zig+5
...@@ -1661,6 +1661,11 @@ test "Thread.getCurrentId" {...@@ -1661,6 +1661,11 @@ test "Thread.getCurrentId" {
1661test "thread local storage" {1661test "thread local storage" {
1662 if (builtin.single_threaded) return error.SkipZigTest;1662 if (builtin.single_threaded) return error.SkipZigTest;
16631663
1664 if (builtin.cpu.arch == .thumbeb) {
1665 // https://github.com/ziglang/zig/issues/24061
1666 return error.SkipZigTest;
1667 }
1668
1664 const thread1 = try Thread.spawn(.{}, testTls, .{});1669 const thread1 = try Thread.spawn(.{}, testTls, .{});
1665 const thread2 = try Thread.spawn(.{}, testTls, .{});1670 const thread2 = try Thread.spawn(.{}, testTls, .{});
1666 try testTls();1671 try testTls();
test/behavior/vector.zig+10
...@@ -606,6 +606,11 @@ test "vector bitwise not operator" {...@@ -606,6 +606,11 @@ test "vector bitwise not operator" {
606 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO606 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
607 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;607 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
608608
609 if (builtin.cpu.arch == .aarch64_be) {
610 // https://github.com/ziglang/zig/issues/24061
611 return error.SkipZigTest;
612 }
613
609 const S = struct {614 const S = struct {
610 fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void {615 fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void {
611 const y = ~x;616 const y = ~x;
...@@ -640,6 +645,11 @@ test "vector boolean not operator" {...@@ -640,6 +645,11 @@ test "vector boolean not operator" {
640 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO645 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
641 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;646 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
642647
648 if (builtin.cpu.arch == .aarch64_be) {
649 // https://github.com/ziglang/zig/issues/24061
650 return error.SkipZigTest;
651 }
652
643 const S = struct {653 const S = struct {
644 fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void {654 fn doTheTestNot(comptime T: type, x: @Vector(4, T)) !void {
645 const y = !x;655 const y = !x;
test/cases/compile_errors/implicitly_increasing_pointer_alignment.zig deleted-20
...@@ -1,20 +0,0 @@
1const Foo = packed struct {
2 a: u8,
3 b: u32,
4};
5
6export fn entry() void {
7 var foo = Foo{ .a = 1, .b = 10 };
8 bar(&foo.b);
9}
10
11fn bar(x: *u32) void {
12 x.* += 1;
13}
14
15// error
16//
17// :8:9: error: expected type '*u32', found '*align(8:8:8) u32'
18// :8:9: note: pointer host size '8' cannot cast into pointer host size '0'
19// :8:9: note: pointer bit offset '8' cannot cast into pointer bit offset '0'
20// :11:11: note: parameter type declared here
test/cases/compile_errors/implicitly_increasing_slice_alignment.zig deleted-20
...@@ -1,20 +0,0 @@
1const Foo = packed struct {
2 a: u8,
3 b: u32,
4};
5
6export fn entry() void {
7 var foo = Foo{ .a = 1, .b = 10 };
8 foo.b += 1;
9 bar(@as(*[1]u32, &foo.b)[0..]);
10}
11
12fn bar(x: []u32) void {
13 x[0] += 1;
14}
15
16// error
17//
18// :9:22: error: expected type '*[1]u32', found '*align(8:8:8) u32'
19// :9:22: note: pointer host size '8' cannot cast into pointer host size '0'
20// :9:22: note: pointer bit offset '8' cannot cast into pointer bit offset '0'
test/cases/pie_linux.zig+1-1
...@@ -6,5 +6,5 @@ pub fn main() void {}...@@ -6,5 +6,5 @@ pub fn main() void {}
66
7// run7// run
8// backend=llvm8// backend=llvm
9// target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpcle-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,s390x-linux,x86-linux,x86_64-linux9// target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpcle-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,x86-linux,x86_64-linux
10// pie=true10// pie=true