Commit Graph
12 Commits
Author SHA1 Message Date
Ian Hays d6054244af Fix 2 failing IO tests. (dotnet/corefx#18952)
* Fix 2 failing IO tests.

The MMF test is failing from a purposeful design change around the default FileShare being used in CreateFromFile. The FSW tests are failing intermittently from inconsistency so I'm reverting my recent change to move them to innerloop and reduce their wait time.

* Add issue number to Skip tag for MMF test


Commit migrated from https://github.com/dotnet/corefx/commit/9f35bcfb7728345151147e72b8264773085e56a0
2017-04-26 13:55:37 -04:00
Ian Hays d0c84002cc Add Retries to FSW WaitFor* Tests (dotnet/corefx#17240)
* Add Retries to FSW WaitFor* Tests

These tests are intermittently failing on some platforms from events not being risen by the filesystem. It's causing a fair amount of churn, so I'm adding retries to them like we have for a lot of the other FSW tests that are succeptible to intermittent failures. Doing so also greatly reduces the runtime in the failure case, allowing us to move the tests back to innerloop.

* Make FSW tests try/catch retry errors


Commit migrated from https://github.com/dotnet/corefx/commit/078b0f49388f787037edb09aa0d994773e6de02f
2017-03-17 15:46:08 -04:00
Eric Eilebrecht d873789779 Enable a couple of tests I missed when rebasing
Commit migrated from https://github.com/dotnet/corefx/commit/053aabb30c8d48aa20de9038f8bebe183f040c88
2016-09-14 14:44:42 -07:00
Ian Hays 2cfb99941a Add Outerloop messages and cleanup FSW tests
Commit migrated from https://github.com/dotnet/corefx/commit/f9f626d63eb7de1fc41d68c5e1602f86e86014d1
2016-09-13 10:38:38 -07:00
Eric Eilebrecht be96f805d0 Work around known issues in "Ubuntu on Windows" (dotnet/corefx#11574)
The latest Windows 10 preview builds contain enough functionality in Ubuntu/Bash on Windows (a.k.a. Windows Subsystem for Linux, or WSL) that .NET Core mostly works now. With the fix for dotnet/corefx#11058, we can even build/test the CoreFx tree in this environment. Currently there are a few test failures; I've been working on identifying the causes of these, and filing bugs in the appropriate repos. 
This change implements workarounds for all of the current known issues in the "inner loop" tests. Mostly, I've just conditionally disabled tests when running in the WSL environment. 
There is still an issue, under investigation, causing non-deterministic failures in the System.Net.Http tests (Microsoft/BashOnWindowsdotnet/corefx#1068). And I haven't tried OuterLoop runs of anything but the networking tests. 

Commit migrated from https://github.com/dotnet/corefx/commit/d9aa92f6616d851256339318aadb89a6737e6d13
2016-09-09 20:10:01 -07:00
Ian Hays a30acca4b1 Move some flaky FSW tests to Outerloop
All of the FSW tests are potentially subject to intermittent failures because of the inherint flakiness of the underlying OS file system watching APIs. Although we do some manual stuff to get around that flakiness (e.g. retries, long timeouts), some scenarios aren't reliable enough to make it through. This commit moves those to Outerloop so they don't get in the way of our gated check in tests.


Commit migrated from https://github.com/dotnet/corefx/commit/c827a452b599d67fe68773b96b4da75044452446
2016-09-01 14:28:30 -07:00
Ian Hays eda731960e Disable event filtering on OSX FSW
The OSX FileSystemWatcher coalesces past events of a file into new events. Previously we did some special work to try to filter out those extraneous events to better match the FSW inotify/win32 behavior. However, this had the consequence that we filtered out some valid events. This commit modifies the behavior to raise an event for exactly every flag that the OS API sets. It also modifies the OSX tests to no longer assert that an event *didn't* occur, but to only assert that an event *did* occur.


Commit migrated from https://github.com/dotnet/corefx/commit/1d3cb36b3f23c804cb243be07320c77e22d008c2
2016-05-20 11:12:15 -07:00
stephentoub f410ab0e75 Disable failing FSW test on OSX
Commit migrated from https://github.com/dotnet/corefx/commit/d2ee61eef353d212f1a3186d461422a439c89c5e
2016-05-15 07:37:16 -04:00
stephentoub 87050ad1d8 Add and fix some FSW tests
Added several simple tests related to FSW.WaitForChanged.

Also attempting to fix a WaitForChanged test, which I believe is failing due to timeouts in the CI system based on how the test is structured.


Commit migrated from https://github.com/dotnet/corefx/commit/44247ab2cd4e42340334f0b7d1a39d26bf8c97c4
2016-05-15 06:54:54 -04:00
stephentoub ac19b4db8b Disable two recently added tests
These were both added in the last few days and have both failed in CI at least once.


Commit migrated from https://github.com/dotnet/corefx/commit/e3f64a9c8f3869f3db1bdc7bac496e56b89334a6
2016-05-10 22:55:55 -04:00
stephentoub bc6cc2100a Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/20ddc4cdf7662f5c6d809431c4f190f96fbf38dc
2016-05-09 12:41:35 -04:00
stephentoub 9cd8abd88f Add FileSystemWatcher.WaitForChanged methods
These were previously left out when ported to .NET Core.  This puts back an implementation of the WaitForChanged methods that mimics the behavior in the full framework.


Commit migrated from https://github.com/dotnet/corefx/commit/f6993346ae5aa0b518d99837c597bbd31aa4e59a
2016-05-09 12:07:25 -04:00