Skip to content

Commit a5b2501

Browse files
authored
Merge pull request #27 from milseman/issue_26
[test] Add a test for issue-26
2 parents 2e9c1a7 + b5a89a4 commit a5b2501

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Tests/SystemTests/FileOperationsTest.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,20 @@ final class FileOperationsTest: XCTestCase {
111111
fatalError("FATAL: `testAdHocOpen`")
112112
}
113113
}
114+
115+
func testGithubIssues() {
116+
// https://github.com/apple/swift-system/issues/26
117+
let issue26 = MockTestCase(
118+
name: "open", "a path", O_WRONLY | O_CREAT, 0o020, interruptable: true
119+
) {
120+
retryOnInterrupt in
121+
_ = try FileDescriptor.open(
122+
"a path", .writeOnly, options: [.create],
123+
permissions: [.groupWrite],
124+
retryOnInterrupt: retryOnInterrupt)
125+
}
126+
issue26.runAllTests()
127+
128+
}
114129
}
115130

0 commit comments

Comments
 (0)