File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ import SwiftFoundation
15
15
import SwiftXCTest
16
16
#endif
17
17
18
- import CoreFoundation
19
-
20
18
class TestNSLock : XCTestCase {
21
19
static var allTests : [ ( String , ( TestNSLock ) -> ( ) throws -> Void ) ] {
22
20
return [
@@ -32,7 +30,7 @@ class TestNSLock: XCTestCase {
32
30
let condition = NSCondition ( )
33
31
let lock = NSLock ( )
34
32
35
- func test( waitTime: CFTimeInterval , shouldLock: Bool ) -> Bool {
33
+ func test( waitTime: TimeInterval , shouldLock: Bool ) -> Bool {
36
34
let locked = lock. lock ( before: Date . init ( timeIntervalSinceNow: waitTime) )
37
35
if locked {
38
36
lock. unlock ( )
Original file line number Diff line number Diff line change 16
16
import SwiftXCTest
17
17
#endif
18
18
19
- import CoreFoundation
19
+ #if !(os(OSX) || os(iOS))
20
+ import CoreFoundation
21
+ #endif
22
+
20
23
21
24
class TestThread : XCTestCase {
22
25
static var allTests : [ ( String , ( TestThread ) -> ( ) throws -> Void ) ] {
You can’t perform that action at this time.
0 commit comments