This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
enable FileSystem.Watcher on FreeBSD - #42488
Merged
Merged
Conversation
stephentoub
reviewed
Nov 8, 2019
| } | ||
|
|
||
| [Theory] | ||
| [PlatformSpecific(~TestPlatforms.FreeBSD)] |
Member
There was a problem hiding this comment.
Will this test never work, or it's a bug right now that it doesn't work? Just wondering if this should be an ActiveIssue instead.
Member
Author
There was a problem hiding this comment.
I don't know yet. I want to chat with @aik-jahoda as that test seems unstable on OSX as well. Probably for other reasons but we may find way how to make adjustments. I don't know if reordering is artifact of libinotify or not. But with catching and idle timers in MacOS, I suspect that may happen as well.
stephentoub
approved these changes
Nov 8, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This piggybacks on #40202. With the hint from @rootwyrm I realized with libinotify we can use our current inotify() code from Linux on FreeBSD. That may not be as optimal as using kqueue directly but it seems to work reasonably well. It can pass all tests with exception of newly added System.IO.Tests.File_Move_Tests.File_Move_Multiple_From_Unwatched_To_WatchedMac.
It gets expected events but they are out of order.
@jasonpugsley @joperator
fixes #2046