Skip to content

Commit 1f559c7

Browse files
committed
Fix up iOS hardware test case for SE-0054.
1 parent f67cee6 commit 1f559c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/1_stdlib/AssetsLibrary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import AssetsLibrary
99

1010
let library = ALAssetsLibrary()
1111
library.enumerateGroupsWithTypes(ALAssetsGroupAll,
12-
usingBlock: {(group: ALAssetsGroup!, stop: UnsafeMutablePointer<ObjCBool>!) -> Void in
12+
usingBlock: {(group: ALAssetsGroup?, stop: UnsafeMutablePointer<ObjCBool>?) -> Void in
1313
print("Swift usingBlock")},
14-
failureBlock: {(error: NSError!) -> Void in
14+
failureBlock: {(error: NSError?) -> Void in
1515
print("Swift failureBlock")})
1616

test/1_stdlib/Dispatch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if #available(OSX 10.10, iOS 8.0, *) {
4949
DispatchAPI.test("dispatch_block_t identity") {
5050
let block = dispatch_block_create(DISPATCH_BLOCK_INHERIT_QOS_CLASS) {
5151
_ = 1
52-
}!
52+
}
5353

5454
dispatch_async(dispatch_get_main_queue(), block)
5555
// This will trap if the block's pointer identity is not preserved.
@@ -61,7 +61,7 @@ if #available(OSX 10.10, iOS 8.0, *) {
6161

6262
let block = dispatch_block_create(dispatch_block_flags_t(0)) {
6363
counter += 1
64-
}!
64+
}
6565
block()
6666
expectEqual(1, counter)
6767

0 commit comments

Comments
 (0)