Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kjpou1
Copy link
Contributor

@kjpou1 kjpou1 commented Apr 9, 2020

closes: #18933

- Modify IO file to assign backslash to alternate directory separator by default
- Add tests for issue mono#18933
@lewing
Copy link
Member

lewing commented Apr 9, 2020

I like that the scope of this is much more limited.

@lewing lewing requested a review from steveisok April 9, 2020 06:46
@kjpou1
Copy link
Contributor Author

kjpou1 commented Apr 9, 2020

Not exactly sure what to do with these tests. Would these be considered portability and we should skip?

Skipped the tests failing:

  1. GetDirectories_Backslash (MonoTests.System.IO.DirectoryTest.GetDirectories_Backslash)
  2. GetFiles_Backslash (MonoTests.System.IO.DirectoryTest.GetFiles_Backslash)
  3. IsPathRooted (MonoTests.System.IO.PathTest.IsPathRooted)

kjpou1 added 2 commits April 10, 2020 06:45
- After internal discussions decided to skip these two tests on wasm

   1. GetDirectories_Backslash
   1. GetFiles_Backslash
@kjpou1 kjpou1 requested a review from akoeplinger as a code owner April 10, 2020 05:01
kjpou1 added 2 commits April 10, 2020 07:31
- skip subtest mono#9 if WASM
- To fix issue mono#18933 we set the AltDirectorySeparatorChar as well.  This causes the `Assert.IsTrue (!Path.IsPathRooted ("\\"), "IsPathRooted mono#9");` to fail. Path.IsPathFullyQualified Method handles paths that use both the DirectorySeparatorChar and the AltDirectorySeparatorChar characters.
@kjpou1
Copy link
Contributor Author

kjpou1 commented Apr 10, 2020

@monojenkins build OS X x64

@kjpou1
Copy link
Contributor Author

kjpou1 commented Apr 10, 2020

@monojenkins build Linux ARMv7 Interpreter

@kjpou1
Copy link
Contributor Author

kjpou1 commented Apr 10, 2020

@monojenkins build Windows x64 FullAOT

@kjpou1 kjpou1 merged commit 5a3e168 into mono:master Apr 11, 2020
@lewing
Copy link
Member

lewing commented Apr 11, 2020

@monojenkins backport 3.2-wasm

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.

System.IO.Path.GetFileName doesn't work in client-side Blazor wasm

4 participants