Commit Graph
14 Commits
Author SHA1 Message Date
sepidehMS e3d734c19d Add comments to PlatformSpecific tests
Commit migrated from https://github.com/dotnet/corefx/commit/493cb79ff4976479be5cc7c6f1fe2d5d9b710425
2017-02-07 15:46:26 -08:00
Justin Van Patten aa68f5ce2f Replace uses of Xunit.PlatformID with renamed TestPlatforms
Replace uses of `Xunit.PlatformID` with renamed `TestPlatforms` because
the old name conflicts with `System.PlatformID` and should be plural
according to the design guidelines for flags enums.


Commit migrated from https://github.com/dotnet/corefx/commit/5179dda7331b1e201519adf76ce9ae69ffe2a0f6
2016-10-01 17:18:41 -07:00
Ian Hays f8f269ff93 Expose InternalBufferOverflowException in FSW (dotnet/corefx#11785)
* Expose InternalBufferOverflowException in FSW
Updates the default targetgroup of filesystemwatcher to netstandard1.7 and exposes InternalBufferOverflowException out of System.IO.FileSystemWatcher.

Commit migrated from https://github.com/dotnet/corefx/commit/148e7d9c6f52f4639226753b0656188e72878c2b
2016-09-30 10:31:41 -04:00
Ian Hays 61d4cb91b5 Increase FSW InternalBufferSize test values
Seems we're intermittetly not hitting the InternalBufferSize capacity in one of our FSW tests. Upping the expected capacity should resolve the issue.


Commit migrated from https://github.com/dotnet/corefx/commit/1cda2f1a15be03f80746f03f5f17f21424eb0784
2016-05-20 11:35:07 -07:00
Ian Hays febb25693e FileSystemWatcher test overhaul
Reworks the FSW tests to be 100% passing.
- Adds path validation to most tests.
- Adds a Retry mechanism to handle expected intermittent failures due to untrustworthy underlying API calls.
- Adds more test cases to NotifyFilter and splits existing tests into separate dir/file tests to cover either behavior.
- Enable test parallelization


Commit migrated from https://github.com/dotnet/corefx/commit/28d10fa256f40c3d37a8cb82d96a1e5520df03d2
2016-05-09 11:24:59 -07:00
Ian Hays c0f649508b Modify FileSysemWatcher tests to use temp paths.
- Add Common TempDirectory class for short-term temporary directories that are easy to create and destroy
- Put all FSW tests into the System.IO.Tests namespace
- Modify all FSW tests to use the common TempFile/TempDirectory classes instead of their own custom one
- Modify all FSW tests to watch for events in a temporary directory. There shouldn't be any more new items being created or watched in the runtime folder.
- Fix the SymLink tests to use the ConditionalFact attribute similar to how the FileSystem tests function.
- Remove the unnecessary symlink print statements being outputted by the FileSystem CreateSymbolicLink function.


Commit migrated from https://github.com/dotnet/corefx/commit/65356f9471850b796d01f63536c3ba36e504f8e1
2016-04-22 09:14:49 -07:00
Jon Hanna 957a5b7e59 Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/defd9770abc06cdf5ed4fa10b01945544598af0b
2016-03-20 14:40:42 +00:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Peter Jas a29604278c code: Fixes occurred spelling.
Fixes dotnet/corefx#3661.


Commit migrated from https://github.com/dotnet/corefx/commit/544a3885ff51e04db89b70e3f155be1a5c64f166
2015-10-06 15:27:09 +00:00
stephentoub 8ce1a4b748 Allow FSW tests to be parallelized
The FSW tests still take ~10 seconds on my machine, most of which is spent waiting for events to not fire.  This change just separates the tests out so that they're not all on the same class, letting xunit parallelize them.  They now take ~3.5 seconds on my machine.


Commit migrated from https://github.com/dotnet/corefx/commit/2fbabe417accb662a6ed63a40506dea0268cf8e2
2015-08-07 14:17:04 -04:00
Stephen Toub 19bae264c5 Annotate and fix platform-specific tests in System.IO.FileSystem.Watcher
A few tests for FileSystemWatcher are platform-specific, e.g. differences in event coalescing behavior causing a the event buffer to fill on Windows but not on Linux.  This commit annotates such tests as Windows-specific.  It also fixes up a few other tests that were mostly platform-independent but had a few pieces that were platform-dependent; the platform-dependent pieces are now conditionally invoked.


Commit migrated from https://github.com/dotnet/corefx/commit/2b25b8db0a8e4599a619389cf946f4859090464d
2015-04-03 15:20:56 -04:00
Christopher Costa 6c499dee70 Disable flakey FileSystemWatcher test for internalbuffer size.
Commit migrated from https://github.com/dotnet/corefx/commit/ccc6e03c3fb7cae3a450be06045c55385c54e9a4
2015-03-25 15:04:43 -07:00
Christopher Costa c4bf8b5a5d Enable FileSystemWatcher test to actually validate internal buffer size changes
Commit migrated from https://github.com/dotnet/corefx/commit/5ef10adb860f63673feaf138b0f2dd283fa39133
2015-03-20 16:27:45 -07:00
dotnet-bot 254a638e63 Add System.IO.FileSystem.Watcher Source and Tests
Commit migrated from https://github.com/dotnet/corefx/commit/73ab96765fa59e5a1d224ecf804a29379da30c0b
2015-03-09 11:50:41 -07:00