Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2018-12] [corlib] Import FileSystemInfo and family from CoreFX #11963

Closed

Conversation

monojenkins
Copy link
Contributor

Includes the following from System.IO:

  • FileSystemInfo
  • FileInfo
  • DirectoryInfo
  • Directory
  • FileSystem
  • Path Join() Span API

and all of System.IO.Enumeration namespace.

Adds about 1600 System.IO tests

Behavior changes:

  • File.Replace now replaces files even if they are read-only (using the rename syscall on Unix)
  • Directory enumeration is no longer stable in the way that many Mono tests expect
  • Some changes in when/whether some representations of directories contain a trailing separator character
  • Changes in which exceptions are thrown (sometimes these are platform-dependent on CoreFX)

Issues:

Part of #7246

Backport of #11342.

/cc @alexischr

alexischr and others added 6 commits December 6, 2018 20:11
The test that runs on Mono (004.1) claims to assert that SetLastError works for pInvokes, but fails to use the Flag when declaring the used pInvoke so it was testing that the last errno happened to be zero.

If fixed to use the flag, the test fails as the errno after getenv() is 13; this may be a Mono bug or something else broken with the test
@marek-safar
Copy link
Member

@alexischr I'd rather not backport this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants