Commit Graph
157 Commits
Author SHA1 Message Date
Stephen Toub eb24238114 Merge pull request dotnet/corefx#2136 from sokket/driveinfo
Refactoring DriveInfo on OS X, Linux, and FreeBSD

Commit migrated from https://github.com/dotnet/corefx/commit/f2acba353843c3898033c058529f34070ed3a9d7
2015-06-24 16:46:41 -07:00
Matt Mitchell 9d11745057 Update build tools. Contains changes to support FreeBSD in xunit.
Float package versions to get the latest version of the netcore extensions (has FreeBSD support)


Commit migrated from https://github.com/dotnet/corefx/commit/c760824a531ffc3981148a8ef9b97f56af9ff643
2015-06-23 16:06:50 -07:00
Jonathan Miller 951c3a99fe Refactoring to a Unix DriveInfo for basic info and OS specific DriveInfo
instances for the GetDrives call


Commit migrated from https://github.com/dotnet/corefx/commit/2589d830efed209ab9705c404c2c8c97df57981e
2015-06-23 11:01:34 -07:00
Eric StJohn 1a58e04134 Update corefx packages to version 23011
Commit migrated from https://github.com/dotnet/corefx/commit/3bb2f035a7c1f6168a6bd34fbf3851f7eedf76bf
2015-06-19 16:33:53 -07:00
stephentoub 8eeec0143e Remove <AllowUnsafeBlocks/> from various test projects
Most test projects don't need unsafe code, but many were forced to allow unsafe blocks due to Interop.PlatformDetection.cs using pointers, and others were allowing it for no apparent reason.  I've modified Interop.PlatformDetection.cs to not use unsafe code, and updated the relevant test projects accordingly. (Eventually we'll switch it over to using the new RuntimeInformation assembly, anyway.)


Commit migrated from https://github.com/dotnet/corefx/commit/3ae04f6ec948331c85c5f8441cd6d9eda868603f
2015-06-16 09:59:32 -04:00
Stephen Toub 6892255f8a Merge pull request dotnet/corefx#2049 from janhenke/System.IO.FileSystem
Implement System.IO.FileSystem assembly on FreeBSD

Commit migrated from https://github.com/dotnet/corefx/commit/6dba5e55338a3cab7e4193291de99e2cb3d5d8de
2015-06-15 13:22:19 -04:00
Jan Henke 8d4d6ad8ce Implement System.IO.FileSystem assembly on FreeBSD
This adds the bits necessary to build the System.IO.FileSystem assembly for FreeBSD. I moved the Interop.posix_fdadvise.cs from Linux to Unix, since that system call is identical between Linux and FreeBSD. That file is only used for Linux and FreeBSD.


Commit migrated from https://github.com/dotnet/corefx/commit/1dd39be66ac96730992dd89ff775b245582d42b7
2015-06-15 17:14:54 +02:00
Stephen Toub 6d661838bc Merge pull request dotnet/corefx#2018 from justinvp/stringequals
Use String.Equals instead of String.Compare for equality checks

Commit migrated from https://github.com/dotnet/corefx/commit/f953d7422c5342a1a7f939c915e37004252e0fb0
2015-06-15 06:25:35 -04:00
stephentoub 92e0e0a8f3 Refactor PathInternal.*.cs partial files
To better support additional platform implementations and to help the FreeBSD port folks make forward progress, I'm refactoring our PathInternal.*.cs files to make it easier to share portions of it across platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/f16697a6d6195fc1162c3691eb8c4be0388780f7
2015-06-14 14:23:00 -04:00
Justin Van Patten 43bf236f33 System.IO: String.Compare -> String.Equals
Per the Best Practices for Using Strings at
http://msdn.microsoft.com/en-us/library/dd465121(v=vs.110).aspx

* Use an overload of the String.Equals method to test whether two
strings are equal.
* Use the String.Compare and String.CompareTo methods to sort strings,
not to check for equality.


Commit migrated from https://github.com/dotnet/corefx/commit/d5a88250ddedd393270b0aece46291c53300170b
2015-06-11 19:55:48 -07:00
stephentoub 68b0c18d2d Update all project.lock.json files
Used:
build.cmd /t:RestorePackage /p:LockDependencies=true


Commit migrated from https://github.com/dotnet/corefx/commit/76fcb7ab9444f68577ca0ec17055ca8c4e574b75
2015-06-10 10:19:11 -04:00
stephentoub 200cfdfdb7 Update project.jsons to use xunit.netcore.extensions "1.0.0-prerelease-*"
Some of the project.json files were referencing xunit.netcore.extensions with ""1.0.0-prerelease" rather than "1.0.0-prerelease-*".  As a result, I was unable to use more recent additions, like PlatformID.AnyUnix.  This change just updates them to use the -* versions, and changes the few remaining places that were using PlatformID.Linux | PlatformID.OSX to instead use PlatformID.AnyUnix.  The project.lock.json files were automatically updated by my building locally.


Commit migrated from https://github.com/dotnet/corefx/commit/f28722e261368de16adc2600fa1f1d3c0993ee8d
2015-06-03 12:31:17 -04:00
Stephen Toub 4ddc414900 Merge pull request dotnet/corefx#1867 from mmitche/stress-unittests
Fix a couple issues discovered during unit test stress

Commit migrated from https://github.com/dotnet/corefx/commit/5dbb962d889478452b96c9ca755cf2ca1b3de83e
2015-06-01 12:24:37 -04:00
Matt Mitchell da7f2b4ca9 Fix a couple issues discovered during unit test stress
Commit migrated from https://github.com/dotnet/corefx/commit/98b480e13e87542b27330fc71deb1a2d7bd8b7e1
2015-05-28 17:08:10 -07:00
Eric StJohn e8454e28a5 Update projects to latest CoreFx packages
This is the result of build /t:RestorePackages /p:LockDependencies=true from the root.

This adds all missing project.lock.json files and updates existing ones to the latest package versions.


Commit migrated from https://github.com/dotnet/corefx/commit/38e0d2a0f8513afe6dc7d86a67e5776ab7b99df1
2015-05-27 12:18:06 -07:00
Eric St. John 56de195c14 Don't call DeleteVolumeMountPoint in appx.
Directory.RemoveDirectory is careful not to delete recursively across a volume mount point.  It does this by detecting the mount point via file attribute data then using DeleteVolumeMountPointW to break the mount point.  This will not work for store apps for two reasons a) unless someone has very loosely ACLed the mount point the API is going to fail with ACCESS_DENIED (UnauthorizedAccessException) b) DeleteVolumeMountPointW is not permitted as part of the modern SDK.  To adress b we are just making this API fail in the same way it would normally.  We discussed this issue with Windows and this was the reccomended approach.

[tfs-changeset: 1474880]


Commit migrated from https://github.com/dotnet/corefx/commit/184b7bb409be13e1234e411c3f2945d16c1f62ab
2015-05-21 05:51:49 -07:00
Eric St. John a8788d6383 Lock dependencies to ensure we build against a predictable package version
This change adds the lock files to repo to ensure we build against a stable set of dependencies.  To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.

Existing projects adding new dependencies will automatically update the lock file incrementally.

New projects should make sure to check their lock file in with locked set to true.

[tfs-changeset: 1474296]


Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
2015-05-21 15:23:27 -07:00
Eric Eilebrecht 40a96f0d15 Fix FileStream bug when using async mode on a handle that's already been bound.
[tfs-changeset: 1474082]


Commit migrated from https://github.com/dotnet/corefx/commit/6cae657a38ca793c6da786911a166260c7f6469d
2015-05-21 15:19:16 -07:00
Eric Eilebrecht f1814699e8 Fix build issue in System.IO.FileSystem introduced by my previous change.
[tfs-changeset: 1474075]


Commit migrated from https://github.com/dotnet/corefx/commit/e93c72f899f86ac4d6294c9e253c4af000fece2f
2015-05-21 15:17:56 -07:00
Eric Eilebrecht 56a50f9f1b Remove old Overlapped usage from Pipe, FileStream, and FileSystemWatcher
Switch usage to new ThreadPoolBoundHandle API.  This is relatively
straightforward, since this code didn't really do anything "tricky" like
re-use NativeOverlapped pointers.

Also, Enable overlapped operations in FileStream on N, now that they use
the supported API.

[tfs-changeset: 1474072]


Commit migrated from https://github.com/dotnet/corefx/commit/87270686b2e8d78953d1787422671faaf25eccb9
2015-05-21 15:17:24 -07:00
Stephen Toub 4269ca39a2 Merge pull request dotnet/corefx#1758 from stephentoub/fix_async_cancellation
Fix canceled async I/O tasks to be Canceled instead of Faulted

Commit migrated from https://github.com/dotnet/corefx/commit/d35c36c2732b462392048b84f446062a11232ce2
2015-05-16 15:49:11 +03:00
Stephen Toub 63558f222c Pass user's CancellationToken through to FileStream async Task
When we call TrySetCanceled, we want to do so using the CancellationToken that issued the cancellation request.  This will ensure that the OperationCanceledException that gets propagated contains that token and can be used for comparisons.


Commit migrated from https://github.com/dotnet/corefx/commit/b85128ccd03808e07678d9c823193cc63c1e20b4
2015-05-15 19:21:36 -04:00
Eric St. John de6614c63a Update to latest CoreFx packages
Latest packages are now on dotnet-core myget feed.

This should address a many of the warnings in the build.  I will follow up with another change to address the rest.

This change brings in the latest build tools with updates to consume "latest" packages (* versions).

I've updated every project in the repo to use * versioning for dependencies.

The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll.  Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources.  The System.IO.Compression.dll from the package is not used since the project reference takes precedence.

I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist.  This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area.  I've fixed this in a separate change and we can remove the workaround once we have a new set of packages.  https://github.com/dotnet/corefx/issues/1761

I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX.  It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec.  This is inconsistent with nuget v2 and should be fixed in DNX.  https://github.com/aspnet/dnx/issues/1881

[tfs-changeset: 1471885]


Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
2015-05-15 12:40:33 -07:00
Stephen Toub ded8f8346b Fix canceled async I/O tasks to be Canceled instead of Faulted
When FileStream async I/O completes due to cancellation, Windows gives back an error code of ERROR_OPERATION_ABORTED.  FileStream is translating this to an OperationCanceledException and then faulting the task with that exception, rather than canceling the task.  This commit changes it to cancel the task so that it ends in the Canceled rather than Faulted state.

This fixes a regression introduced by dotnet/corefx#972.


Commit migrated from https://github.com/dotnet/corefx/commit/1e1b8ae3246e722cc082bb53e9ecedfd9c0a0434
2015-05-15 11:57:18 -04:00
Alex Ghiondea 5bc19a13ab Port CS1469287 from ProjectN to ProjectK via FXMain
[tfs-changeset: 1469367]


Commit migrated from https://github.com/dotnet/corefx/commit/9c3b459ae51da4665ccd420f92effac6255523fd
2015-05-12 14:29:10 -07:00
Eric St. John 82098ff46d Make Set*TimeUtc param names consistent with desktop
Parameter names in implementation were inconsistent with reference assembly and desktop implementation. This is a compatibility issue since parameter names can be used when calling the API. This would only surface for runtime compilation.

[tfs-changeset: 1467566]


Commit migrated from https://github.com/dotnet/corefx/commit/f6876f10f55a0d1a2e8deedf1fb0b210989e769e
2015-05-08 14:19:48 -07:00
Stephen Toub c3035888b4 Merge pull request dotnet/corefx#1668 from Priya91/removexunittraits
Remove XunitTraitDiscoverers project from corefx.

Commit migrated from https://github.com/dotnet/corefx/commit/e2b74c91791a772c27eb450bb49cdc221e3a5f4e
2015-05-08 06:52:21 -04:00
Lakshmi Priya Sekar 2a499c5cbf Remove XunitTraitDiscoverers from corefx and reference the nuget package xunit.netcore.extensions.
Commit migrated from https://github.com/dotnet/corefx/commit/03e32211d668ee215f32c599849987cb7d9d4e2a
2015-05-07 16:15:32 -07:00
Eric St. John 3b5b5c28dc Fix build of S.IO.FileSystem for NetCore 5.0
We build a configuration of S.IO.FileSystem internally that targets NetCore 5.0.
Make sure to declare this in the project.json so that DNX will resolve assets for it.

[tfs-changeset: 1466592]


Commit migrated from https://github.com/dotnet/corefx/commit/6af2a92d6e9debae27384c4e5c54e861c7bc8db6
2015-05-07 12:13:36 -07:00
Maxwe11 7183af6b92 Make test class accessible for test runner
Commit migrated from https://github.com/dotnet/corefx/commit/0cc2b076026c817c6f05832ecf46194e921124cd
2015-05-07 00:39:02 +03:00
Eric StJohn 5db3ae33bf Convert all remaining package dependencies to project.json
DNX and BuildTools now support all of the nuget v2 conventions that we depend on so we can
move all remaining nuget v2 packages to the project.json file and eliminate packages.config.

This change also adds "frameworks" to the project.json so that dnu restore can calculate
applicable assets.  I am not yet using "runtimes" in the project.json since we are still resolving
our runtime assets manually (eg: build tools copies known files from packages).  A future
change will move us to using our runtime packages and add runtimes sections to projects
as appropriate.


Commit migrated from https://github.com/dotnet/corefx/commit/eb35a304c7e89e8b4335ed13c5d23706360d49a4
2015-05-05 12:36:57 -07:00
Mike McLaughlin 83411f8c4d Go back to a statically linked PAL (issue dotnet/corefx#728).
Commit migrated from https://github.com/dotnet/corefx/commit/679dea200bd361569279e33cc44ff39ac937f5ea
2015-04-28 17:37:22 -07:00
Stephen Toub 3958531eae Merge pull request dotnet/corefx#1524 from stephentoub/fix_filesystem_tests
Fix a few more FileSystem tests on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/7f42242d53c000572a6adf962c9c1f532e7e9019
2015-04-27 14:17:24 -04:00
Daniel Paoliello 23457c0c44 Fix for Issue dotnet/corefx#587: Modified Win32FileStream.FileStreamAsyncResult to be using a TaskCompletionSource, modified the core Read\Write methods to return Tasks, and so removed the internal Begin\End methods since they are no longer required. Also added a pair of "mini-stress" tests for ReadAsync and WriteAsync as OuterLoop tests.
Commit migrated from https://github.com/dotnet/corefx/commit/aca535e12bf3642cff2f725cbe97cd31e01a5f9c
2015-04-26 12:50:13 -07:00
Stephen Toub 8b8bb05512 Fix a few more FileSystem tests on Unix
https://github.com/dotnet/coreclr/pull/823 fixes an where '*' and '?' are treated as invalid path characters.  Once that's fixed, some additional FileSystem tests that were expecting '*' and '?' to be invalid start failing on Unix.  This commit fixes those tests.

The fixes are all of either two flavors: using Interop.IsWindows to only run the test on Windows, or changing the path to include characters also invalid on Unix (namely '\0').  A bit arbitrary, but I used the former when there was a comment saying that wildcards were being tested, and I used the latter when there was a comment saying that illegal characters were being tested.


Commit migrated from https://github.com/dotnet/corefx/commit/d3fb391ef0d6505bd0f2f4bb6c269c4c96c126a3
2015-04-26 10:53:41 -04:00
Stephen Toub d7103cea8c Fix UnixFileStream.Seek buffering with SeekOrigin.Current
UnixFileStream.Seek was dumping the read buffer as desired, but with a SeekOrigin.Current, it wasn't factoring in the read buffer information into the offset (the fact that we have a read buffer means that the caller's definition of "Current" doesn't match the actual underlying file descriptor's position).  This fix just updates the offset (as is correctly done in similar code in the Win32FileStream implementation) based on how much data we have in the read buffer.

I've also added a seek test that repeatedly seeks around and reads data.  It blows up without the fix and passes with it.


Commit migrated from https://github.com/dotnet/corefx/commit/563f4977543f483ce1a5df8b9ffd9f96ffe0921f
2015-04-24 13:43:09 -04:00
Stephen Toub d29260bcd3 Fix build break in System.IO.FileSystem.WinRT.csproj
[tfs-changeset: 1458925]


Commit migrated from https://github.com/dotnet/corefx/commit/327912df86fc5ff867d78ec358e7c5005a0a21a2
2015-04-23 06:05:20 -07:00
Lakshmi Priya Sekar 27d80c8aa7 Merge branch 'updatecategories' of github.com:Priya91/corefx-1 into updatecategories
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/f8cb25b5861cdaca5ab75364b38523865ce47006
2015-04-22 19:26:24 -07:00
Matt Cohn af589dbcc2 Merge branch 'master' into zip2
Conflicts:
	src/System.IO.FileSystem/src/System.IO.FileSystem.csproj


Commit migrated from https://github.com/dotnet/corefx/commit/b5044a38a6acbfe8bbccaaf7e1229cff0893a670
2015-04-22 13:19:18 -07:00
Lakshmi Priya Sekar aa951a667e Remove testcategories from csproj, in relation to the recent changes in buildtools.
Commit migrated from https://github.com/dotnet/corefx/commit/30b9b8d87605f17dbb94ccf7785da1fde8f11329
2015-04-21 16:36:05 -07:00
Matt Cohn f91f684fb6 Move file system case sensitivity policy to common source
Move the file system case sensitivity policy from an internal
FileSystem property to the common linked-source internal class
PathInternals.  This allows System.IO.Compression.ZipFile to use
the same policy.  We will need to update this when we add the ability
to detect the case sensitivity of the file system, rather than
assuming based on operating system.


Commit migrated from https://github.com/dotnet/corefx/commit/aa6a0d40d2abd6b2ebdac0234d3dfc73aae35b12
2015-04-21 15:41:30 -07:00
Stephen Toub c03d59a302 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/6b811dc505b028225cf02b9cd11f16f840e69566
2015-04-21 12:02:14 -04:00
Stephen Toub d45ff6b386 Fix FileSystem, Pipes, and MemoryMappedFiles bugs on OSX
Most of our testing until now has been on Linux.  This PR represents a pass through the tests on OSX and provides fixes to get the System.IO.FileSystem, System.IO.Pipes, and System.IO.MemoryMappedFiles tests passing at 100%.  Most of these fixes are product fixes, with just a few test fixes.

Primary src fixes:
- Lots of named values (errors, open flags, sysconf names, etc.) have different values across Linux and OSX: I've fixed those to be specific to the platform being compiled for. (In the future, we should consider introducing a native shim layer through which we make _all_ calls to Unix and have it surface a consistent view, so that we don't have to worry about this kind of issue.)
- Some functions or options to functions being used on Linux don't exist on OSX, e.g. madvise's DONTFORK, posix_fadvise, etc.; these have either been removed if not truly needed or moved behind the PAL layer to only be used on Linux.
- Some functions (e.g.  shm_open) have different behavior from Linux.  For example, shm_open doesn't appear to work well with shared memory objects, such as not allowing MAP_PRIVATE and not supporting PROT_EXEC (though the OSX man pages don't mention this).  In such cases, I've implemented a fallback, e.g. on OSX we use a temporary file rather than a shared memory object.
- Some functions have subtle differences around edge cases, e.g. mmap on Linux appears to allow the creation of a map with length that goes beyond that of the underlying medium, but then fails when trying to use it, whereas OSX moves the failure to the mmap call itself.  I've implemented workarounds to smooth over these differences.
- Various error conditions were resulting in the wrong exception type based on different exception codes being returned on OSX than on Linux, e.g. additional error codes needed to be mapped to IOException when rmdir fails.
- Replaced direct usage of getenv through P/Invoke with calls to Environment.GetEnvironmentVariable. (These are a holdover from when we didn't yet have GetEnvironmentVariable available.)
- Fixed up a few places we could be using CheckIo but instead had effectively written out its implementation manually.

Primary test fixes:
- Some of the file system tests are just plain buggy, regardless of platform, with timing issues that are more likely to show up on a debug runtime.  I've fixed the ones that manifested while I was doing this testing, but the file system tests really deserved to be overhauled in general.
- Windows' implementation of File/DirectoryInfo returns default values for CreationTime when created for a file that doesn't exist; this appears to be purely for back compat with previously buggy behavior, so I changed the test to only verify this on Windows, rather than implement similar buggy behavior on Linux/OSX.
- A few test cases that were previously exempted for Linux also needed to be exempted for OSX.
- Re-enabled the System.Dynamic.Runtime.Tests now that the associated runtime error that was causing them to fail has been fixed.


Commit migrated from https://github.com/dotnet/corefx/commit/5a912670b442f7f7984b6d7f0be190213f726fd4
2015-04-21 12:02:02 -04:00
Matt Ellis 6cb12f9218 Merge pull request dotnet/corefx#1437 from ellismg/disable-failing-test
Disable failing test

Commit migrated from https://github.com/dotnet/corefx/commit/a1ab41cbd7d3435aed4e98132617fba03675cd31
2015-04-19 22:10:25 -07:00
Matt Ellis 47439e20a7 Disable failing test
ValidFileOptions test is failing.  Disable it.


Commit migrated from https://github.com/dotnet/corefx/commit/71d167bc7342360c6b0c9ed255df95efdbad816a
2015-04-19 21:50:02 -07:00
Eric StJohn c0e430ddf5 Update to latest CoreFx packages, convert to project.json
This change updates all projects to the latest CoreFx packages which make use of nuget v3 features and thus require project.json.  Packages.config remains for the packages which are not yet compatible with the new build task (mainly because we need to resolve to PCL folders).
The entire change was done by a tool in order to not miss any dependencies, and ensure we have project items for the packages.config/project.json.  One side effect of using the tool is some reformatting of whitespace in the projects.


Commit migrated from https://github.com/dotnet/corefx/commit/e729c5353070b71aedff8f1300ae838573813faf
2015-04-15 12:47:43 -07:00
Matt Ellis dcd78126f1 "libcoreclr" -> "libcoreclrpal"
The runtime has factored out the PAL from the runtime and renamed it
from libcoreclr to libcoreclrpal.  This change just updates all our
pinvokes to consume the new name.


Commit migrated from https://github.com/dotnet/corefx/commit/3565f2941db607bf9a994fb18f07177b6ab18d34
2015-04-14 19:16:12 -07:00
Stephen Toub c206ba7b5a Remove workaround for runtime finally bug
Now that https://github.com/dotnet/coreclr/pull/674 is checked in, removing the workaround.


Commit migrated from https://github.com/dotnet/corefx/commit/23ad36b37a71018454ad640bd20a6ef270b66737
2015-04-10 13:13:49 -04:00
Stephen Toub cdf97700fa Fix System.IO.FileSystem product source and tests for Linux
Prior to this set of changes, 110 of the FileSystem tests were failing on Linux.  After this change, all allowed tests pass.

Primary product fixes:
- Using rmdir/unlink for directory/file deletion rather than using remove
- Disallowing FileStreams to be opened for directories
- Supporting copying files when only target directory (not target name) is specified
- Overhauling directory enumeration to ensure to match Win32 behaviors related to search pattern normalization, input validation, supporting re-iteration through an enumerable, outputting partial paths based on user-supplied path, using a SafeHandle to ensure resources are cleaned up
- Fixing FileSystemObject.LastWriteTime to correctly return the LastWriteTime rather than LastAccessTime
- Fixing FileAttributes.ReadOnly handling due to inappropriate caching
- Validating inputs to FileSystemObject.Attributes, and make sure that changes to attributes are visible afterwards
- Adding support for getting CreationTime if it's supported by the OS
- Marking links with FileAttributes.ReparsePoint
- Working around current runtime bug related to exception handling and finally blocks getting executed twice

Primary test fixes:
- Suppressing tests as platform-specific that dependend on Win32-isms like drive letters, alternate data streams, etc.
- Changing a bunch of '\' usage to instead use Path.DirectorySeparatorChar or Path.Combine
- Adapting to behavioral differences between Windows and Unix, e.g. whether a directory can be deleted if it's readonly, invalid path characters, max path lengths, file sharing differences, etc.

These changes should all accrue to OSX as well, but we'll need to separately do an exercise to clean this library and tests up there for anything OSX-specific.


Commit migrated from https://github.com/dotnet/corefx/commit/dd48c9dc1f0a7142a005ff1d4c162e10facda306
2015-04-10 13:13:34 -04:00
Stephen Toub 0b73784be4 Avoid unnecessary allocations in CheckSearchPattern
Commit migrated from https://github.com/dotnet/corefx/commit/196d67401fe20e92fb7ce48efb9de8fcdb3e5d9d
2015-04-10 13:13:18 -04:00