-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
TestOnExecuteCustomCommand fails with Assert.Equal #1724
Comments
Usually those pass, most skip unless you’re elevated , and those are all failing: #1262 |
@danmosemsft it's failing on the last three outerloop builds. Updated the issue to link to the builds. Seems 100% at this moment. |
This is failing on the libraries outerloop builds. Tracked by dotnet#1724
This is failing on the libraries outerloop builds. Tracked by #1724
@Anipik owns this test |
I will try to take look at this by the end of this week |
@danmosemsft it looks like you regressed it with #1234. runtime/src/libraries/System.ServiceProcess.ServiceController/tests/ServiceBaseTests.cs Lines 146 to 155 in e92e2e6
|
This means that but protected override void OnCustomCommand(int command)
{
base.OnCustomCommand(command);
if (Environment.UserInteractive) // see ServiceBaseTests.TestOnExecuteCustomCommand()
command++; The failure is across Windows 7, Server, and Windows 8.1 - so it's not some special Windows SKU that needs special treatment like Nano. This would be the case if corelib did not have my change, but the tests did -- could easily happen in the old two-repo system, but hopefully not possible any more. Well, it's disabled for now. I'll have a look later, if @Anipik doesn't see the problem as part of #1262 |
I did run the tests locally of course -- although it's possible somehow in all the failures caused by #1262 I missed this one was not passing. I also did test that Envirohment.UserInteractive returned false in a test service I made by hand and ran on Windows 10, and true on a Nano container. |
Please take a look at dotnet/wpf#2663. WPF's OpenFileDialog is broken because I don't think WinForms is broken though. I tried it and it seems to work fine. |
Looking at the intial commit that added this fuctionality I think the logic is inverted. #1234 (comment) I'll submit a fix. |
Happened again in #47230, seems to fail multiple times a day according to kusto. |
Platform: Windows_NT x64/x86 Release
Pipeline: runtime-libraries outerloop
Example builds:
Proximate diagnostic info:
The text was updated successfully, but these errors were encountered: