Skip to content

Commit

Permalink
Disable LockTests.testReadWriteFileLock
Browse files Browse the repository at this point in the history
This test may fail spuriously if a reader thread runs before any writers
were able to write the initial value to the file. Disable the test until
it can be fixed. We saw the same issue with FileSystemTests in the past.

rdar://78461378
  • Loading branch information
benlangmuir committed May 25, 2021
1 parent dd7b5a3 commit fa1ce62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/TSCBasicTests/LockTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class LockTests: XCTestCase {
}

func testReadWriteFileLock() throws {
try XCTSkipIf(true, "fails spuriously if reader thread beats first writer rdar://78461378")
try withTemporaryDirectory { tempDir in
let fileA = tempDir.appending(component: "fileA")
let fileB = tempDir.appending(component: "fileB")
Expand Down

0 comments on commit fa1ce62

Please sign in to comment.