Commit Graph
9 Commits
Author SHA1 Message Date
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Jonathan Miller ce1edcfdf9 Moving statfs calls and DriveInfo PInvokes over to use the PAL layer.
The PAL layer will abstract away the knowledge of if the OS has
/proc/mounts or a C API to gather the mount point information. This
change also means we only need one DriveInfo.Unix file for all
non-Windows platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/ef507af9c0c7c882e4b46a912d759e3811886f80
2015-08-28 14:56:56 -07:00
Ian Hays be4a5036a2 Responding to PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/a176c9132773cc566aa68c8fb45a768990e2c3fe
2015-08-26 10:24:51 -07:00
Ian Hays f21571a4fd Add coverage to DriveInfo tests
FileSystem.DriveInfo.dll coverage raised to at or near testable maximum. Added several scenarios that weren't present before and also split up Volume Label setting/getting to several tests so that errors can be better diagnosed.


Commit migrated from https://github.com/dotnet/corefx/commit/6a0beb6b176ad555abe6ba7d9992245400d8f442
2015-08-24 16:31:16 -07:00
stephentoub e4fc8980d6 Fix DriveInfo.DriveType to not throw on Unix
On Windows this property never throws, but instead returns a value in the returned enum that indicates failure when failure occurs.  On Unix we were throwing in such cases, and this commit fixes that.


Commit migrated from https://github.com/dotnet/corefx/commit/0c44f8965a075920bbd3249ecd6bac85c50e8008
2015-07-17 18:03:12 -04:00
Jonathan Miller cab9f14891 Fixing last failing tests on Linux
Commit migrated from https://github.com/dotnet/corefx/commit/954aabd17fd3e0f81a6cf9a2313301b4cbeea887
2015-06-23 12:01:31 -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
Stephen Toub 964b3dea7d Add PlatformID.AnyUnix
There are ~110 tests that have been disabled with an ActiveIssue for PlatformID.Linux | PlatformID.OSX.  To simplify this and to avoid lots of additional churn when additional Unix-based platforms are added, I've added PlatformID.AnyUnix = Linux | OSX, and replaced all usage of Linux | OSX with just AnyUnix.  When new platforms are added, we can simply add to the enum, expand the meaning of AnyUnix, and most tests meant to be disabled for Unix will automatically be disabled.


Commit migrated from https://github.com/dotnet/corefx/commit/c96932da11940e0bae05de8e364eac90a6e1786b
2015-04-29 07:22:40 -04:00
Stephen Toub ad4f8abab4 Add DriveInfo tests for Unix
All of the existing DriveInfo tests were Windows-specific.  This commit annotates them as such, and adds some additional tests to cover the Unix implementation(s).


Commit migrated from https://github.com/dotnet/corefx/commit/6e7fbbedc90fb0466742cb00b566f338e514ab5e
2015-04-03 15:11:04 -04:00