Skip to content

Commit 5c288db

Browse files
committed
Exclude unsupported test on Windows
1 parent fbbabb4 commit 5c288db

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Tests/WASITests/WASITests.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,13 @@ final class WASITests: XCTestCase {
173173
XCTAssertEqual(pointer.offset, eventOffset)
174174
XCTAssertEqual(WASIAbi.Event.readFromGuest(&pointer), event)
175175
XCTAssertEqual(pointer.offset, finalOffset)
176-
XCTAssertTrue(
177-
try ContinuousClock().measure {
178-
let clockPointer = UnsafeGuestBufferPointer<WASIAbi.Subscription>(baseAddress: .init(memorySpace: memory, offset: clockOffset), count: 1)
179-
XCTAssertEqual(try WASIBridgeToHost().poll_oneoff(subscriptions: clockPointer, events: .init(baseAddress: .init(memorySpace: memory, offset: finalOffset), count: 1)), 1)
180-
} > .nanoseconds(timeout))
176+
177+
#if !os(Windows)
178+
XCTAssertTrue(
179+
try ContinuousClock().measure {
180+
let clockPointer = UnsafeGuestBufferPointer<WASIAbi.Subscription>(baseAddress: .init(memorySpace: memory, offset: clockOffset), count: 1)
181+
XCTAssertEqual(try WASIBridgeToHost().poll_oneoff(subscriptions: clockPointer, events: .init(baseAddress: .init(memorySpace: memory, offset: finalOffset), count: 1)), 1)
182+
} > .nanoseconds(timeout))
183+
#endif
181184
}
182185
}

0 commit comments

Comments
 (0)