Skip to content

Commit f92f14f

Browse files
authored
Merge pull request #1005 from mattrajca/master
2 parents b18f3a0 + 0ae561f commit f92f14f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TestFoundation/TestFileManager.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class TestFileManager : XCTestCase {
4949
} catch _ {
5050
XCTFail()
5151
}
52-
52+
53+
// Ensure attempting to create the directory again fails gracefully.
54+
XCTAssertNil(try? fm.createDirectory(atPath: path, withIntermediateDirectories:false, attributes:nil))
55+
5356
var isDir = false
5457
let exists = fm.fileExists(atPath: path, isDirectory: &isDir)
5558
XCTAssertTrue(exists)

0 commit comments

Comments
 (0)