File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 7
7
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
+ #if !DARWIN_COMPATIBILITY_TESTS // Disable until Foundation has the new FileHandle API
11
+
10
12
import Dispatch
11
13
12
14
class TestFileHandle : XCTestCase {
@@ -484,3 +486,5 @@ class TestFileHandle : XCTestCase {
484
486
]
485
487
}
486
488
}
489
+
490
+ #endif
Original file line number Diff line number Diff line change @@ -751,6 +751,7 @@ class TestNSCalendar: XCTestCase {
751
751
}
752
752
753
753
func test_rangeOfWeekendStartDate_interval_containingDate( ) throws {
754
+ #if !DARWIN_COMPATIBILITY_TESTS // NSCalender range(ofWeekendContaining:) is experimental
754
755
try enumerateTestWeekends ( ) { ( calendar, interval) in
755
756
let startDateResult = calendar. range ( ofWeekendContaining: interval. start)
756
757
XCTAssertEqual ( startDateResult, interval)
@@ -764,6 +765,7 @@ class TestNSCalendar: XCTestCase {
764
765
let oneSecondBeforeEndResult = calendar. range ( ofWeekendContaining: interval. end - 1 )
765
766
XCTAssertEqual ( oneSecondBeforeEndResult, interval)
766
767
}
768
+ #endif
767
769
}
768
770
769
771
func test_enumerateDatesStartingAfterDate_chineseEra_matchYearOne( ) throws {
Original file line number Diff line number Diff line change 7
7
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
+ #if !DARWIN_COMPATIBILITY_TESTS // Disable until Foundation has the new FileHandle API
10
11
class TestPipe : XCTestCase {
11
12
12
13
static var allTests : [ ( String , ( TestPipe ) -> ( ) throws -> Void ) ] {
@@ -57,3 +58,4 @@ class TestPipe: XCTestCase {
57
58
XCTAssertEqual ( text, convertedData)
58
59
}
59
60
}
61
+ #endif
Original file line number Diff line number Diff line change 7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
+ #if !DARWIN_COMPATIBILITY_TESTS // Disable until Foundation has the new Scanner API
11
+
10
12
fileprivate func withScanner( for string: String , invoking block: ( ( Scanner ) throws -> Void ) ? = nil ) rethrows {
11
13
let scanner = Scanner ( string: string)
12
14
scanner. locale = Locale ( identifier: " en_US_POSIX " )
@@ -481,3 +483,5 @@ class TestScanner : XCTestCase {
481
483
]
482
484
}
483
485
}
486
+
487
+ #endif
You can’t perform that action at this time.
0 commit comments