Skip to content

CopyFileWithData test fails on Browser #40543

Closed

Description

@mdh1418

Currently on Browser wasm, writing the destination file is not possible because it is read-only

[FAIL] System.IO.Tests.File_Copy_str_str.CopyFileWithData(data: [], readOnly: True)
System.UnauthorizedAccessException : Access to the path '/tmp/File_Copy_str_str_ypiu4y0o.2w2/CopyFileWithData_114_f441a4cf' is denied.
---- System.IO.IOException : Permission denied
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName)
at System.IO.Tests.File_Copy_str_str.Copy(String source, String dest)
at System.IO.Tests.File_Copy_str_str.CopyFileWithData(Char[] data, Boolean readOnly)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----

Activity

  1. added
    arch-wasm
    on Aug 7, 2020
  2. added
    untriaged
    on Aug 7, 2020
  3. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-System.IOuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions