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

don't rely on error code returned on Windows Nano #104973

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

adamsitnik
Copy link
Member

For a long time, Windows Nano used to return ERROR_SUCCESS when we were starting a file that was not an executable ( #17919)

Recently it started to return ERROR_TOO_MANY_POSTS: Too many posts were made to a semaphore.

Which does not make any sense to me. Since the most important thing is to ensure that Win32Exception is being thrown, I've modified the test to verify that for all Windows versions and check the error code for non-Nano versions.

fixes #104770

@jkotas jkotas merged commit bbcab23 into dotnet:main Jul 17, 2024
79 of 83 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Diagnostics.Process os-windows-nano Nano Windows SKU test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: System.Diagnostics.Tests.ProcessStartInfoTests.StartInfo_BadExe(useShellExecute: False)
2 participants