-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
System.IO.FileSystem.Watcher.Tests crashing on MacCatalyst #65601
Comments
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsRunfo Creating Tracking Issue (data being generated)
|
Tagging subscribers to 'os-maccatalyst': @steveisok, @akoeplinger Issue Details
Runfo Tracking Issue: System.IO.FileSystem.Watcher.Tests crashing on MacCatalyst
Build Result Summary
|
It can be related to #64906, but since it was very defensive change I expect it to expose an existing problem rather than introduce a new one. @tmds when working on #64906 (and #57139) have you tried to figure out why the directory was getting removed in the meantime? I wonder if we have a test bug somewhere (deleting the directories before the tests finishes). |
The runtime/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs Lines 195 to 207 in 87ab863
|
So the long term fix would be to ensure that each test is using it's own directory? |
Yes, tests are supposed to have their own directories so they work independent. |
* move duplicated logic to a method * ensure all paths are logged, so we can diagnose #65601 * Apply suggestions from code review Co-authored-by: Stephen Toub <stoub@microsoft.com>
After @adamsitnik's PR, we got the following call stack:
We were expecting ./dir1/nested/dir but got the first directory created in the test, which matches with what's described here: runtime/src/libraries/System.IO.FileSystem.Watcher/tests/FileSystemWatcher.Directory.Move.cs Line 186 in 1a296c0
|
Seems to be in
FileSystemWatcher_Directory_Create_InNestedDirectory
:Runfo Tracking Issue: System.IO.FileSystem.Watcher.Tests crashing on MacCatalyst
Build Result Summary
The text was updated successfully, but these errors were encountered: