aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/event/tcp.zig11
1 files changed, 9 insertions, 2 deletions
diff --git a/std/event/tcp.zig b/std/event/tcp.zig
index 27eab9f0bb..1542538082 100644
--- a/std/event/tcp.zig
+++ b/std/event/tcp.zig
@@ -123,10 +123,17 @@ pub async fn connect(loop: *Loop, _address: *const std.net.Address) !std.os.File
}
test "listen on a port, send bytes, receive bytes" {
- if (builtin.os != builtin.Os.linux) {
- // TODO build abstractions for other operating systems
+ // TODO build abstractions for other operating systems
+ const skip_test: bool = switch (builtin.os) {
+ builtin.Os.linux => false,
+ //builtin.Os.macosx, builtin.Os.ios => false,
+ else => true,
+ };
+
+ if (skip_test == true) {
return error.skip;
}
+
const MyServer = struct {
tcp_server: Server,