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

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

Open
MaximLipnin opened this issue Apr 2, 2020 · 1 comment
Open
Labels
area-System.Console help wanted [up-for-grabs] Good issue for external contributors os-windows runtime-mono specific to the Mono runtime
Milestone

Comments

@MaximLipnin
Copy link
Contributor

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

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Console untriaged New issue has not been triaged by the area owner labels Apr 2, 2020
@danmoseley danmoseley added runtime-mono specific to the Mono runtime os-windows labels Apr 10, 2020
@danmoseley
Copy link
Member

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.

@adamsitnik adamsitnik removed the untriaged New issue has not been triaged by the area owner label Jun 24, 2020
@adamsitnik adamsitnik added this to the Future milestone Jun 24, 2020
@adamsitnik adamsitnik added the help wanted [up-for-grabs] Good issue for external contributors label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Console help wanted [up-for-grabs] Good issue for external contributors os-windows runtime-mono specific to the Mono runtime
Projects
None yet
Development

No branches or pull requests

4 participants