authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-11 20:36:45+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-16 06:23:14+01:00
log9f589311935d79f27515436a405a8f81c6ecff46
treed0bf46b200413870531ef2cea7a63760e3aa2b20
parent647866dd63fc180c19b92b08b5a6a056bcc988e9
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.http: disable all tests on non-Debug powerpc64

https://github.com/llvm/llvm-project/issues/171879

1 files changed, 16 insertions(+), 0 deletions(-)

lib/std/http/test.zig+16
...@@ -12,6 +12,8 @@ const expectEqualStrings = std.testing.expectEqualStrings;...@@ -12,6 +12,8 @@ const expectEqualStrings = std.testing.expectEqualStrings;
12const expectError = std.testing.expectError;12const expectError = std.testing.expectError;
1313
14test "trailers" {14test "trailers" {
15 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
16
15 const io = std.testing.io;17 const io = std.testing.io;
16 const test_server = try createTestServer(io, struct {18 const test_server = try createTestServer(io, struct {
17 fn run(test_server: *TestServer) anyerror!void {19 fn run(test_server: *TestServer) anyerror!void {
...@@ -96,6 +98,8 @@ test "trailers" {...@@ -96,6 +98,8 @@ test "trailers" {
96}98}
9799
98test "HTTP server handles a chunked transfer coding request" {100test "HTTP server handles a chunked transfer coding request" {
101 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
102
99 const io = std.testing.io;103 const io = std.testing.io;
100 const test_server = try createTestServer(io, struct {104 const test_server = try createTestServer(io, struct {
101 fn run(test_server: *TestServer) anyerror!void {105 fn run(test_server: *TestServer) anyerror!void {
...@@ -162,6 +166,8 @@ test "HTTP server handles a chunked transfer coding request" {...@@ -162,6 +166,8 @@ test "HTTP server handles a chunked transfer coding request" {
162}166}
163167
164test "echo content server" {168test "echo content server" {
169 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
170
165 const io = std.testing.io;171 const io = std.testing.io;
166 const test_server = try createTestServer(io, struct {172 const test_server = try createTestServer(io, struct {
167 fn run(test_server: *TestServer) anyerror!void {173 fn run(test_server: *TestServer) anyerror!void {
...@@ -250,6 +256,8 @@ test "echo content server" {...@@ -250,6 +256,8 @@ test "echo content server" {
250}256}
251257
252test "Server.Request.respondStreaming non-chunked, unknown content-length" {258test "Server.Request.respondStreaming non-chunked, unknown content-length" {
259 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
260
253 const io = std.testing.io;261 const io = std.testing.io;
254262
255 if (builtin.os.tag == .windows) {263 if (builtin.os.tag == .windows) {
...@@ -326,6 +334,8 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {...@@ -326,6 +334,8 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {
326}334}
327335
328test "receiving arbitrary http headers from the client" {336test "receiving arbitrary http headers from the client" {
337 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
338
329 const io = std.testing.io;339 const io = std.testing.io;
330340
331 const test_server = try createTestServer(io, struct {341 const test_server = try createTestServer(io, struct {
...@@ -389,6 +399,8 @@ test "receiving arbitrary http headers from the client" {...@@ -389,6 +399,8 @@ test "receiving arbitrary http headers from the client" {
389}399}
390400
391test "general client/server API coverage" {401test "general client/server API coverage" {
402 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
403
392 const io = std.testing.io;404 const io = std.testing.io;
393405
394 if (builtin.os.tag == .windows) {406 if (builtin.os.tag == .windows) {
...@@ -882,6 +894,8 @@ test "general client/server API coverage" {...@@ -882,6 +894,8 @@ test "general client/server API coverage" {
882}894}
883895
884test "Server streams both reading and writing" {896test "Server streams both reading and writing" {
897 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
898
885 const io = std.testing.io;899 const io = std.testing.io;
886900
887 const test_server = try createTestServer(io, struct {901 const test_server = try createTestServer(io, struct {
...@@ -1136,6 +1150,8 @@ fn createTestServer(io: Io, S: type) !*TestServer {...@@ -1136,6 +1150,8 @@ fn createTestServer(io: Io, S: type) !*TestServer {
1136}1150}
11371151
1138test "redirect to different connection" {1152test "redirect to different connection" {
1153 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
1154
1139 const io = std.testing.io;1155 const io = std.testing.io;
1140 const test_server_new = try createTestServer(io, struct {1156 const test_server_new = try createTestServer(io, struct {
1141 fn run(test_server: *TestServer) anyerror!void {1157 fn run(test_server: *TestServer) anyerror!void {