Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore disabled FileSystemTests #199

Merged
merged 2 commits into from
Mar 22, 2021
Merged

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Mar 18, 2021

motivation: better test coverage

changes:

  • refactor the common part of testInMemoryFileSystemFileLock, testLocalFileSystemFileLock, testRerootedFileSystemViewFileLock
  • resove the potential reader race by making sure file have content prior to starting the threads
  • enable the above disabled tests in FileSystemTests

rdar://71560894

motivation: better test coverage

changes:
* refactor the common part of testInMemoryFileSystemFileLock, testLocalFileSystemFileLock, testRerootedFileSystemViewFileLock
* resove the potential reader race by making sure file have content prior to starting the threads
* enable the above disabled tests in FileSystemTests

rdar://71560894
@tomerd
Copy link
Contributor Author

tomerd commented Mar 18, 2021

@swift-ci please test

Tests/TSCBasicTests/FileSystemTests.swift Outdated Show resolved Hide resolved
Tests/TSCBasicTests/FileSystemTests.swift Outdated Show resolved Hide resolved
Tests/TSCBasicTests/FileSystemTests.swift Outdated Show resolved Hide resolved
@tomerd
Copy link
Contributor Author

tomerd commented Mar 18, 2021

@swift-ci please test

Copy link
Contributor

@benlangmuir benlangmuir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@tomerd tomerd merged commit 3eba1fa into swiftlang:main Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants