Skip to content

Commit 12d2e8f

Browse files
committed
Mark UnicodeScalarProperties Darwin only for right now
1 parent edc5d88 commit 12d2e8f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stdlib/private/StdlibUnicodeUnittest/UnicodeScalarProperties.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
// Unicode scalar tests are currently only avaible on Darwin, awaiting a sensible
14+
// file API...
15+
#if _runtime(_ObjC)
1316
import Foundation
1417

1518
// Cache of opened files
@@ -632,3 +635,4 @@ public let names: [Unicode.Scalar: String] = {
632635

633636
return result
634637
}()
638+
#endif

validation-test/stdlib/UnicodeScalarProperties.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// REQUIRES: executable_test
33
// REQUIRES: long_test
44
// REQUIRES: optimized_stdlib
5+
// REQUIRES: objc_interop
56

67
import StdlibUnittest
78
import StdlibUnicodeUnittest

0 commit comments

Comments
 (0)