You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if !os(WASI) // Would need to use _getConst funcs from CSystem
23
26
func testSyscalls(){
24
27
letfd=FileDescriptor(rawValue:1)
25
28
@@ -88,6 +91,7 @@ final class FileOperationsTest: XCTestCase {
88
91
89
92
fortestin syscallTestCases { test.runAllTests()}
90
93
}
94
+
#endif // !os(WASI)
91
95
92
96
func testWriteFromEmptyBuffer()throws{
93
97
#if os(Windows)
@@ -153,6 +157,7 @@ final class FileOperationsTest: XCTestCase {
153
157
// TODO: Test writeAll, writeAll(toAbsoluteOffset), closeAfter
154
158
}
155
159
160
+
#if !os(WASI) // WASI has no pipe
156
161
func testAdHocPipe()throws{
157
162
// Ad-hoc test testing `Pipe` functionality.
158
163
// We cannot test `Pipe` using `MockTestCase` because it calls `pipe` with a pointer to an array local to the `Pipe`, the address of which we do not know prior to invoking `Pipe`.
@@ -171,6 +176,7 @@ final class FileOperationsTest: XCTestCase {
171
176
}
172
177
}
173
178
}
179
+
#endif
174
180
175
181
func testAdHocOpen(){
176
182
// Ad-hoc test touching a file system.
@@ -211,8 +217,13 @@ final class FileOperationsTest: XCTestCase {
0 commit comments