Commit Graph
15 Commits
Author SHA1 Message Date
Viktor Hofer ef7a0e676a Enable XUnit Analyzers (dotnet/corefx#38676)
* Enable XUnit Analyzers


Commit migrated from https://github.com/dotnet/corefx/commit/b8a7f34e1b64e5c594f591aa8683f34506eb9736
2019-07-05 22:50:57 +02:00
Anirudh Agnihotry 8516f17308 DriveFormat returns null on WSL (dotnet/corefx#32372)
* added default value for isHFS

* using and operator


Commit migrated from https://github.com/dotnet/corefx/commit/3a206a056f765b4d0df02e5d0ff6d0f7bdfe23c2
2018-09-20 15:56:01 -07:00
Anirudh Agnihotry 8e9c9c4a75 Another Case where millisecond Granularity was missed (dotnet/corefx#31593)
* MilliSeconds added

* Test Added for move operation

* LastAccessTimeTest

* avoid overflow and using both seconfs and nanoseconds of the native

* feedback addressed

* Tests fixed for CI

* Feedback addressed

* method signature changed

* removing comments

* named argument added


Commit migrated from https://github.com/dotnet/corefx/commit/510eaf10912ce5790302addb0171916b9a134000
2018-08-08 22:06:57 -07:00
Anirudh Agnihotry 3dcd3db585 Using Utimes instead of utime hence setting millisecond attribute of last access and last modified time to non-zero (dotnet/corefx#31522)
* using utimes instead of utime

* Test for checking millisec attribute is set or not

* Documenting the values in case of the failure

* NanoSecond enabled

* feedback addressed

* int64_t added

* Fixing build on ci Osx(on which utimensat is not available)

* Minor nits done


Commit migrated from https://github.com/dotnet/corefx/commit/cd62bb271e98410319460b4ba48332416bcccf65
2018-08-02 14:10:30 -07:00
Anirudh Agnihotry e527d170fe Maintaining the consistency of tests among master and release branch (dotnet/corefx#31164)
* Feedback Addressed

* Fixing original tests and for appContainers

* comment corrected


Commit migrated from https://github.com/dotnet/corefx/commit/7d916b0fe6c5e723374be7232c79706eedc64466
2018-07-23 13:42:06 -07:00
Anirudh Agnihotry fee351144f MilliSecond Granualrity added to Copy operation on unix (dotnet/corefx#30996)
* test added

* Test Modified

* Adding Implementation

* tabs removed

* modifyingTest

* Fixing build on HFS

* Space around arithemetic operator


Commit migrated from https://github.com/dotnet/corefx/commit/387aa6c624f0cc8b1c0c013dfddeb115f7c16e27
2018-07-12 10:19:39 -07:00
Maryam Ariyan 6d9d4c0357 Updating test to assert milisecond granularity for (dotnet/corefx#30763)
- non any linux or
- OSX non-HFS driver formats

Fixes dotnet/corefx#30472

Commit migrated from https://github.com/dotnet/corefx/commit/a399e51941f6435063052df8b47182ddca0b4496
2018-07-03 15:54:48 -07:00
Dan Moseley f384b7e87f Prevent CMake 2.8 tests failing for unused variable (causing millisec to be dropped from stat calls) (dotnet/corefx#28573)
* Prevent CMake 2.8 tests failing for unused variable

* Make sterror_r test fail as it should

* Reenable tests



Commit migrated from https://github.com/dotnet/corefx/commit/2c0a662262a6ad8bfdfb97dd786db2734c24754b
2018-03-29 11:32:50 +02:00
Dan Moseley 7ff0126590 Disable Millisec test on Linux (dotnet/corefx#28345)
* Disable Millisec test on Linux

* Feedback


Commit migrated from https://github.com/dotnet/corefx/commit/3a59545a9fb5a6d7cdd272cb79c6fc8251ac2e0c
2018-03-21 21:56:12 -07:00
Jan Kotas cab7e9e4a0 WIP: Enable TimesIncludeMillisecondPart on selected filesystems only (dotnet/corefx#28242)
* Enable TimesIncludeMillisecondPart on selected filesystems only

Use filesystem name to suppress the test failure

* Make the test fail

* Break out tests


Commit migrated from https://github.com/dotnet/corefx/commit/a31762f7fd5b580a6f583b3bbb69fb9e75b87d14
2018-03-20 22:17:25 -07:00
Dan Moseley 0c07197707 Logging for TimesIncludeMillisecondPart test and reenable for Linux (dotnet/corefx#27559)
* Logging for TimesIncludeMillisecondPart test

* Enable test for Linux

* Formatting


Commit migrated from https://github.com/dotnet/corefx/commit/0c4fe29556861d5e728cd1f47afb687eb2711623
2018-02-28 21:45:20 -08:00
Dan Moseley 81727726e0 Disable Millisec test for all Unix (dotnet/corefx#26384)
* Disable Millisec test for all Unix

* Typo


Commit migrated from https://github.com/dotnet/corefx/commit/c8593a626b6f59b835876a4579ce2b32f56e1077
2018-01-17 16:11:33 -08:00
Dan Moseley b1b1d91e25 Disable Msec test on macOS (dotnet/corefx#26350)
Commit migrated from https://github.com/dotnet/corefx/commit/04e2be220ee82171aaacef560d2b8270f82282dc
2018-01-15 15:51:49 -08:00
Dan Moseley 5319d7787e Add nanosecond granularity to Unix filesystem time reads (dotnet/corefx#26176)
* Update PAL

* Revert PAL

* Add SxS struct

* Test

* CompareTo

* Simple creation time test

* CompareTo public

* Simple creation time test

* typo

* Extract method

* CR feedback

* Look for birthtimespec

* Rework to PAL approach

* comment

* typos

* typo

* Comment


Commit migrated from https://github.com/dotnet/corefx/commit/d75610efce77c2f2562c4f35de901ea38b6d43b7
2018-01-15 08:10:27 -08:00
Jeremy Kuhne 9ff1ec49c4 Fill out FileSystemInfo state when enumerating (dotnet/corefx#20716)
* Fill out FileSystemInfo state when enumerating

On Windows FileSystemInfos are filled in with state as we have
all of the state from FindFirstFileEx.

* Add more tests

Refactor Time tests and add cases for refresh state.
Fix positive attribute assertion.

* Missed one of the cases

* Tweaking the time tolerance didn't succeed.

Putting it back to -3 seconds.

* Refactor tests

Gets coverage consistent
Fixes test bug in DirectoryInfo where it was creating files for invalid attributes

* Address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/9468aedba81b7d0b43f5545fc840a53544164694
2017-06-07 19:53:15 -07:00