authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-12 18:44:32+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-12 18:44:32+01:00
logf1267e02c49f5d571420d687a6337a85ab76767d
treefdb364dc59f57c98014bd2449c58309d4a470e0d
parentb671baee1aaed4e8ea7e289fd17fb8ee11ffaf65
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.http.test: disable tests on openbsd

https://codeberg.org/ziglang/zig/issues/30806

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

lib/std/http/test.zig+8
...@@ -13,6 +13,7 @@ const expectError = std.testing.expectError;...@@ -13,6 +13,7 @@ const 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/17187915 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
16 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
1617
17 const io = std.testing.io;18 const io = std.testing.io;
18 const test_server = try createTestServer(io, struct {19 const test_server = try createTestServer(io, struct {
...@@ -99,6 +100,7 @@ test "trailers" {...@@ -99,6 +100,7 @@ test "trailers" {
99100
100test "HTTP server handles a chunked transfer coding request" {101test "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/171879102 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
103 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
102104
103 const io = std.testing.io;105 const io = std.testing.io;
104 const test_server = try createTestServer(io, struct {106 const test_server = try createTestServer(io, struct {
...@@ -167,6 +169,7 @@ test "HTTP server handles a chunked transfer coding request" {...@@ -167,6 +169,7 @@ test "HTTP server handles a chunked transfer coding request" {
167169
168test "echo content server" {170test "echo content server" {
169 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879171 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
172 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
170173
171 const io = std.testing.io;174 const io = std.testing.io;
172 const test_server = try createTestServer(io, struct {175 const test_server = try createTestServer(io, struct {
...@@ -257,6 +260,7 @@ test "echo content server" {...@@ -257,6 +260,7 @@ test "echo content server" {
257260
258test "Server.Request.respondStreaming non-chunked, unknown content-length" {261test "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/171879262 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
263 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
260264
261 const io = std.testing.io;265 const io = std.testing.io;
262266
...@@ -335,6 +339,7 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {...@@ -335,6 +339,7 @@ test "Server.Request.respondStreaming non-chunked, unknown content-length" {
335339
336test "receiving arbitrary http headers from the client" {340test "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/171879341 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
342 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
338343
339 const io = std.testing.io;344 const io = std.testing.io;
340345
...@@ -400,6 +405,7 @@ test "receiving arbitrary http headers from the client" {...@@ -400,6 +405,7 @@ test "receiving arbitrary http headers from the client" {
400405
401test "general client/server API coverage" {406test "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/171879407 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
408 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
403409
404 const io = std.testing.io;410 const io = std.testing.io;
405411
...@@ -895,6 +901,7 @@ test "general client/server API coverage" {...@@ -895,6 +901,7 @@ test "general client/server API coverage" {
895901
896test "Server streams both reading and writing" {902test "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/171879903 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
904 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
898905
899 const io = std.testing.io;906 const io = std.testing.io;
900907
...@@ -1164,6 +1171,7 @@ fn createTestServer(io: Io, S: type) !*TestServer {...@@ -1164,6 +1171,7 @@ fn createTestServer(io: Io, S: type) !*TestServer {
11641171
1165test "redirect to different connection" {1172test "redirect to different connection" {
1166 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/1718791173 if (builtin.cpu.arch.isPowerPC64() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171879
1174 if (builtin.os.tag == .openbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/30806
11671175
1168 const io = std.testing.io;1176 const io = std.testing.io;
1169 const test_server_new = try createTestServer(io, struct {1177 const test_server_new = try createTestServer(io, struct {