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;
1212const expectError = std.testing.expectError;
1313
1414test "trailers" {
15 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
16
1517 const io = std.testing.io;
1618 const test_server = try createTestServer(io, struct {
1719 fn run(test_server: *TestServer) anyerror!void {
......@@ -96,6 +98,8 @@ test "trailers" {
9698}
9799
98100test "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
99103 const io = std.testing.io;
100104 const test_server = try createTestServer(io, struct {
101105 fn run(test_server: *TestServer) anyerror!void {
......@@ -162,6 +166,8 @@ test "HTTP server handles a chunked transfer coding request" {
162166}
163167
164168test "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
165171 const io = std.testing.io;
166172 const test_server = try createTestServer(io, struct {
167173 fn run(test_server: *TestServer) anyerror!void {
......@@ -250,6 +256,8 @@ test "echo content server" {
250256}
251257
252258test "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
253261 const io = std.testing.io;
254262
255263 if (builtin.os.tag == .windows) {
......@@ -326,6 +334,8 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {
326334}
327335
328336test "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
329339 const io = std.testing.io;
330340
331341 const test_server = try createTestServer(io, struct {
......@@ -389,6 +399,8 @@ test "receiving arbitrary http headers from the client" {
389399}
390400
391401test "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
392404 const io = std.testing.io;
393405
394406 if (builtin.os.tag == .windows) {
......@@ -882,6 +894,8 @@ test "general client/server API coverage" {
882894}
883895
884896test "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
885899 const io = std.testing.io;
886900
887901 const test_server = try createTestServer(io, struct {
......@@ -1136,6 +1150,8 @@ fn createTestServer(io: Io, S: type) !*TestServer {
11361150}
11371151
11381152test "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
11391155 const io = std.testing.io;
11401156 const test_server_new = try createTestServer(io, struct {
11411157 fn run(test_server: *TestServer) anyerror!void {