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

[wasm][aot] Windows: Test failures for System.IO.FileSystem.Tests #58707

Closed
Tracked by #64596
radical opened this issue Sep 6, 2021 · 4 comments
Closed
Tracked by #64596

[wasm][aot] Windows: Test failures for System.IO.FileSystem.Tests #58707

radical opened this issue Sep 6, 2021 · 4 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-System.IO wasm-aot-test WebAssembly AOT Test
Milestone

Comments

@radical
Copy link
Member

radical commented Sep 6, 2021

PR to enable AOT tests on windows: https://github.com/dotnet/runtime/pull/58578a

Build
Log

[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: ['è', 'f', 'à', 'Ù', 0x008c, ...], readOnly: True)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: ['V', 'O', '}', 0x0094, '"', ...], readOnly: True)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: ['*', '4', 0x0018, 0x007f, 0x000e, ...], readOnly: True)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: ['|', '^', 0x0015, 'J', 0x009e, ...], readOnly: False)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: [0x0010, 0x0090, 'í', 'é', '¸', ...], readOnly: False)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:11] fail: [FAIL] System.IO.Tests.FileInfo_CopyTo_str.CopyFileWithData(data: [0x0003, 'R', 'Ð', '0', 0x00b2, ...], readOnly: False)
[02:34:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
[02:34:11] info:    at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
[02:34:11] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[02:34:35] info: Finished:    System.IO.FileSystem.Tests.dll
[02:34:35] info: 
[02:34:35] info: === TEST EXECUTION SUMMARY ===
[02:34:35] info: Total: 4948, Errors: 0, Failed: 6, Skipped: 158, Time: 33.631588s
@radical radical added arch-wasm WebAssembly architecture wasm-aot-test WebAssembly AOT Test labels Sep 6, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.IO untriaged New issue has not been triaged by the area owner labels Sep 6, 2021
@radical
Copy link
Member Author

radical commented Sep 6, 2021

cc @lewing @radekdoulik

@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Sep 7, 2021
@lewing lewing added this to the 7.0.0 milestone Sep 7, 2021
radical added a commit to radical/runtime that referenced this issue Nov 7, 2021
https//github.com/dotnet/issues/58707
https//github.com/dotnet/issues/58708
@ilonatommy
Copy link
Member

@radekdoulik, are we able to fix it in 7.0?

@radical
Copy link
Member Author

radical commented Jun 20, 2022

@ilonatommy do these tests still fail? Has the failure changed?

@ilonatommy
Copy link
Member

You're right, running dotnet build /t:Test src/libraries/System.IO.FileSystem/tests /p:TargetOS=Browser /p:Configuration=Release /p:RunAOTCompilation=true results in [PASS] for all 48 kinds of CopyFileWithData.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.IO wasm-aot-test WebAssembly AOT Test
Projects
None yet
Development

No branches or pull requests

4 participants