commit 6de8748b057d99d6003e1d4a5f7fb027776522ad (tree)
parent 651aa5e8e497a12dc14d31f383777f99b92a2739
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 17 Feb 2024 11:46:37 -0700
std.http: skip tests on wasi and single-threaded
WASI does not support networking, and these tests require threads.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/http/test.zig b/lib/std/http/test.zig
@@ -1,7 +1,11 @@
+const builtin = @import("builtin");
const std = @import("std");
const testing = std.testing;
test "trailers" {
+ if (builtin.single_threaded) return error.SkipZigTest;
+ if (builtin.os.tag == .wasi) return error.SkipZigTest;
+
const gpa = testing.allocator;
var http_server = std.http.Server.init(.{