Skip to content

[mono] Test failed on windows: WindowAndCursorProps.Title_Set_Windows #34454

Open

Description

@MaximLipnin

The WindowAndCursorProps tests are disabled in Mono's CoreFX.issues_windows.rsp file. After enabling only WindowAndCursorProps.Title_Set_Windows fails locally with the following output:

  Unhandled Exception:
  System.IO.DirectoryNotFoundException: Could not find a part of the path.
     at System.ConsolePal.get_Title() in _\src\libraries\System.Console\src\System\ConsolePal.Windows.cs:line 621
     at System.Console.get_Title() in _\src\libraries\System.Console\src\System\Console.cs:line 287
     at WindowAndCursorProps.<>c.<Title_Set_Windows>b__24_0(String lengthOfTitleString) in _\src\libraries\System.Console\tests\WindowAndCursorProps.cs:line 253
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs:line 360
  --- End of stack trace from previous location ---
     at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 95
  [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path.
     at System.ConsolePal.get_Title() in _\src\libraries\System.Console\src\System\ConsolePal.Windows.cs:line 621
     at System.Console.get_Title() in _\src\libraries\System.Console\src\System\Console.cs:line 287
     at WindowAndCursorProps.<>c.<Title_Set_Windows>b__24_0(String lengthOfTitleString) in _\src\libraries\System.Console\tests\WindowAndCursorProps.cs:line 253
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs:line 360
  --- End of stack trace from previous location ---
     at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 95
      WindowAndCursorProps.Title_Set_Windows(lengthOfTitle: 0) [FAIL]
        Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
        Stack Trace:
          Child exception:
            System.IO.DirectoryNotFoundException: Could not find a part of the path.
          _\src\libraries\System.Console\src\System\ConsolePal.Windows.cs(621,0): at System.ConsolePal.get_Title()
          _\src\libraries\System.Console\src\System\Console.cs(287,0): at System.Console.get_Title()
          _\src\libraries\System.Console\tests\WindowAndCursorProps.cs(253,0): at WindowAndCursorProps.<>c.<Title_Set_Windows>b__24_0(String lengthOfTitleString)
          _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(360,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
          Child process:
            System.Console.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 WindowAndCursorProps+<>c Void <Title_Set_Windows>b__24_0(System.String)
          Child arguments:
            0

The test will be marked with ActiveIssue in #32592

Activity

  1. added
    untriaged
    on Apr 2, 2020
  2. added
    runtime-mono
    on Apr 10, 2020
  3. danmoseley commented on Apr 10, 2020

    @danmoseley
    Contributor

    GetConsoleTitleW is failing with ERROR_PATH_NOT_FOUND. Would need a debugger to figure out why. Either a wierd Windows bug or a wierd interop bug in Mono runtime? We do properly SetLastError = true on this call.

  4. removed
    untriaged
    on Jun 24, 2020
  5. added this to the Future milestone on Jun 24, 2020
  6. added
    help wanted
    on Nov 13, 2023
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

    area-System.Consolehelp wantedos-windowsruntime-mono

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions