Skip to content

Commit 42371ed

Browse files
committed
Fix IUO error in test suite.
1 parent 58f869b commit 42371ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestNSURL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class TestNSURL : XCTestCase {
266266

267267
func test_fileURLWithPath() {
268268
if !TestNSURL.setup_test_paths() {
269-
let error = strerror(errno)
269+
let error = strerror(errno)!
270270
XCTFail("Failed to set up test paths: \(NSString(bytes: error, length: Int(strlen(error)), encoding: NSASCIIStringEncoding)!.bridge())")
271271
}
272272

@@ -311,7 +311,7 @@ class TestNSURL : XCTestCase {
311311

312312
func test_fileURLWithPath_isDirectory() {
313313
if !TestNSURL.setup_test_paths() {
314-
let error = strerror(errno)
314+
let error = strerror(errno)!
315315
XCTFail("Failed to set up test paths: \(NSString(bytes: error, length: Int(strlen(error)), encoding: NSASCIIStringEncoding)!.bridge())")
316316
}
317317

0 commit comments

Comments
 (0)