You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f4b501
Browse filesBrowse the repository at this point in the historyBrowse files
[wasi] Fix FileProviders.Physical test filtering on WASI
FileSystemWatcher is not supported on WASI, so add Wasi to the remaining
FileSystemWatcher SkipOnPlatform attributes.
Wildcard polling hashes with SHA256, which is not supported on WASI yet.
Quarantine the PollingWildCardChangeToken tests and the wildcard rows of the
polling watcher tests against dotnet#99126,
splitting the UsePollingFileWatcher theories so the non-wildcard rows keep
running.
Co-authored-by: Copilot App <[email protected]>
Copy file name to clipboardExpand all lines: src/libraries/Microsoft.Extensions.FileProviders.Physical/tests/PhysicalFileProviderTests.cs
+35-23Lines changed: 35 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -355,7 +355,7 @@ public void TokenIsSameForSamePath()
355
355
}
356
356
357
357
[Fact]
358
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
358
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -385,7 +385,7 @@ public async Task TokensFiredOnFileChange()
385
385
}
386
386
387
387
[Fact]
388
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
388
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
389
389
[SkipOnCoreClr("JitStress slows this down too much",RuntimeTestModes.JitStress|RuntimeTestModes.JitStressRegs)]
390
390
publicasyncTaskTokenCallbackInvokedOnFileChange()
391
391
{
@@ -422,7 +422,7 @@ public async Task TokenCallbackInvokedOnFileChange()
422
422
}
423
423
424
424
[Fact]
425
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
425
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -450,7 +450,7 @@ public async Task WatcherWithPolling_ReturnsTrueForFileChangedWhenFileSystemWatc
450
450
}
451
451
452
452
[Fact]
453
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
453
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -480,7 +480,7 @@ public async Task WatcherWithPolling_ReturnsTrueForFileRemovedWhenFileSystemWatc
480
480
}
481
481
482
482
[Fact]
483
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
483
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -815,7 +815,7 @@ public void GetDirectoryContentsReturnsFilesWhenExclusionDisabled()
815
815
}
816
816
817
817
[Fact]
818
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
818
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -863,7 +863,7 @@ public void TokenIsSameForSamePathCaseInsensitive()
863
863
}
864
864
865
865
[Fact]
866
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
866
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -896,7 +896,7 @@ public async Task CorrectTokensFiredForMultipleFiles()
896
896
}
897
897
898
898
[Fact]
899
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
899
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1001,7 +1001,7 @@ public void NoopChangeTokenForAbsolutePathFilters()
1001
1001
}
1002
1002
1003
1003
[Fact]
1004
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1004
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1026,7 +1026,7 @@ public async Task TokenFiredOnCreation()
1026
1026
}
1027
1027
1028
1028
[Fact]
1029
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1029
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1051,7 +1051,7 @@ public async Task TokenFiredOnDeletion()
1051
1051
}
1052
1052
1053
1053
[Fact]
1054
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1054
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1105,7 +1105,7 @@ public async Task TokenFiredForRelativePathStartingWithSlash_Windows(string slas
1105
1105
[InlineData("///")]
1106
1106
// Testing Unix specific behaviour on leading slashes.
1107
1107
[PlatformSpecific(TestPlatforms.AnyUnix)]
1108
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1108
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1148,7 +1148,7 @@ public async Task TokenNotFiredForInvalidPathStartingWithSlash_Windows(string sl
1148
1148
[InlineData("/\0/")]
1149
1149
// Testing Unix specific behaviour on leading slashes.
1150
1150
[PlatformSpecific(TestPlatforms.AnyUnix)]
1151
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1151
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1182
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1222,7 +1222,7 @@ public void TokensWithForwardAndBackwardSlashesAreSame()
1222
1222
}
1223
1223
1224
1224
[Fact]
1225
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1225
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1256,7 +1256,7 @@ public async Task TokensFiredForOldAndNewNamesOnRename()
1256
1256
}
1257
1257
1258
1258
[Fact]
1259
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1259
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1332
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1395,7 +1395,7 @@ public async Task TokensNotFiredForHiddenAndSystemFiles()
1395
1395
}
1396
1396
1397
1397
[Fact]
1398
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1398
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1423,7 +1423,7 @@ public async Task TokensFiredForAllEntriesOnError()
1423
1423
}
1424
1424
1425
1425
[Fact]
1426
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1426
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1449,7 +1449,7 @@ public async Task WildCardToken_RaisesEventsForNewFilesAdded()
1449
1449
}
1450
1450
1451
1451
[Fact]
1452
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1452
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
@@ -1620,7 +1632,7 @@ public void CreateFileWatcher_CreatesWatcherWithPollingAndActiveFlags()
1620
1632
[Theory]
1621
1633
[InlineData(false)]
1622
1634
[InlineData(true)]
1623
-
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/iOS/tvOS")]
1635
+
[SkipOnPlatform(TestPlatforms.Browser|TestPlatforms.Wasi|TestPlatforms.iOS|TestPlatforms.tvOS,"System.IO.FileSystem.Watcher is not supported on Browser/WASI/iOS/tvOS")]
0 commit comments