| ... | @@ -123,10 +123,17 @@ pub async fn connect(loop: *Loop, _address: *const std.net.Address) !std.os.File | ... | @@ -123,10 +123,17 @@ pub async fn connect(loop: *Loop, _address: *const std.net.Address) !std.os.File |
| 123 | } | 123 | } |
| 124 | | 124 | |
| 125 | test "listen on a port, send bytes, receive bytes" { | 125 | test "listen on a port, send bytes, receive bytes" { |
| 126 | if (builtin.os != builtin.Os.linux) { | 126 | // TODO build abstractions for other operating systems |
| 127 | // TODO build abstractions for other operating systems | 127 | const skip_test: bool = switch (builtin.os) { |
| | 128 | builtin.Os.linux => false, |
| | 129 | //builtin.Os.macosx, builtin.Os.ios => false, |
| | 130 | else => true, |
| | 131 | }; |
| | 132 | |
| | 133 | if (skip_test == true) { |
| 128 | return error.skip; | 134 | return error.skip; |
| 129 | } | 135 | } |
| | 136 | |
| 130 | const MyServer = struct { | 137 | const MyServer = struct { |
| 131 | tcp_server: Server, | 138 | tcp_server: Server, |
| 132 | | 139 | |