authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-27 06:40:15+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-27 06:40:15+02:00
log11fbf78cb317e9a7a8fe4c8412f87a13d9982e26
treede6c53d4d3e3cd5e0f82300ccbc97127f781056c
parentc47c05386eab5982b0fb20aa58ab80e202e97393
parent19fd87fff19ef4325100446b439941536662de24

Merge pull request 'std: re-enable some tests on loongarch64 and s390x' (#32079) from alexrp/zig:reenable-tests into master

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/32079

4 files changed, 11 insertions(+), 26 deletions(-)

lib/std/crypto/ml_kem.zig-15
......@@ -1456,8 +1456,6 @@ fn randPolyNormalized(rnd: anytype) Poly {
14561456}
14571457
14581458test "MulHat" {
1459 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1460
14611459 var rnd = RndGen.init(0);
14621460
14631461 for (0..100) |_| {
......@@ -1612,8 +1610,6 @@ test "Polynomial packing" {
16121610}
16131611
16141612test "Test inner PKE" {
1615 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1616
16171613 var seed: [32]u8 = undefined;
16181614 var pt: [32]u8 = undefined;
16191615 for (&seed, &pt, 0..) |*s, *p, i| {
......@@ -1635,8 +1631,6 @@ test "Test inner PKE" {
16351631}
16361632
16371633test "Test happy flow" {
1638 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1639
16401634 var seed: [64]u8 = undefined;
16411635 for (&seed, 0..) |*s, i| {
16421636 s.* = @as(u8, @intCast(i));
......@@ -1661,23 +1655,14 @@ test "Test happy flow" {
16611655// Code to test NIST Known Answer Tests (KAT), see PQCgenKAT.c.
16621656
16631657test "NIST KAT test d00.Kyber512" {
1664 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1665 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1666
16671658 try testNistKat(d00.Kyber512, "e9c2bd37133fcb40772f81559f14b1f58dccd1c816701be9ba6214d43baf4547");
16681659}
16691660
16701661test "NIST KAT test d00.Kyber1024" {
1671 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1672 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1673
16741662 try testNistKat(d00.Kyber1024, "89248f2f33f7f4f7051729111f3049c409a933ec904aedadf035f30fa5646cd5");
16751663}
16761664
16771665test "NIST KAT test d00.Kyber768" {
1678 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1679 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1680
16811666 try testNistKat(d00.Kyber768, "a1e122cad3c24bc51622e4c242d8b8acbcd3f618fee4220400605ca8f9ea02c2");
16821667}
16831668
lib/std/http/test.zig+9-9
......@@ -34,7 +34,7 @@ test "content length reader state update" {
3434}
3535
3636test "trailers" {
37 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
37 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
3838 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
3939
4040 const io = std.testing.io;
......@@ -121,7 +121,7 @@ test "trailers" {
121121}
122122
123123test "HTTP server handles a chunked transfer coding request" {
124 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
124 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
125125 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
126126
127127 const io = std.testing.io;
......@@ -190,7 +190,7 @@ test "HTTP server handles a chunked transfer coding request" {
190190}
191191
192192test "echo content server" {
193 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
193 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
194194 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
195195
196196 const io = std.testing.io;
......@@ -281,7 +281,7 @@ test "echo content server" {
281281}
282282
283283test "Server.Request.respondStreaming non-chunked, unknown content-length" {
284 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
284 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
285285 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
286286
287287 const io = std.testing.io;
......@@ -360,7 +360,7 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {
360360}
361361
362362test "receiving arbitrary http headers from the client" {
363 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
363 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
364364 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
365365
366366 const io = std.testing.io;
......@@ -426,7 +426,7 @@ test "receiving arbitrary http headers from the client" {
426426}
427427
428428test "general client/server API coverage" {
429 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
429 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
430430 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
431431
432432 const io = std.testing.io;
......@@ -922,7 +922,7 @@ test "general client/server API coverage" {
922922}
923923
924924test "Server streams both reading and writing" {
925 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
925 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
926926 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
927927
928928 const io = std.testing.io;
......@@ -1192,7 +1192,7 @@ fn createTestServer(io: Io, S: type) !*TestServer {
11921192}
11931193
11941194test "redirect to different connection" {
1195 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
1195 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
11961196 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
11971197
11981198 const io = std.testing.io;
......@@ -1280,7 +1280,7 @@ test "redirect to different connection" {
12801280}
12811281
12821282test "boot failed connections from the pool" {
1283 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
1283 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194257
12841284 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
12851285
12861286 const io = std.testing.io;
lib/std/math/modf.zig+1-1
......@@ -86,7 +86,7 @@ fn ModfTests(comptime T: type) type {
8686 }
8787 test "vector" {
8888 if (builtin.os.tag.isDarwin() and builtin.cpu.arch == .aarch64) return error.SkipZigTest;
89 if (builtin.cpu.arch == .s390x) return error.SkipZigTest;
89 if (builtin.cpu.arch == .s390x) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194256
9090
9191 const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 };
9292
lib/std/zon/parse.zig+1-1
......@@ -3129,7 +3129,7 @@ test "std.zon free on error" {
31293129
31303130test "std.zon vector" {
31313131 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/15330
3132 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .s390x) return error.SkipZigTest; // github.com/ziglang/zig/issues/25957
3132 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .s390x) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/25957
31333133
31343134 const gpa = std.testing.allocator;
31353135