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

Test Failure: UnloadingAndProcessExitTests on UAP not firing unloading events #23204

Open
nchikanov opened this issue Aug 16, 2017 · 6 comments
Labels
area-System.Runtime backlog-cleanup-candidate An inactive issue that has been marked for automated closure. disabled-test The test is disabled in source code against the issue help wanted [up-for-grabs] Good issue for external contributors no-recent-activity test-bug Problem in test source code (most likely)
Milestone

Comments

@nchikanov
Copy link
Contributor

Discovered failing test case in UWP CoreCLR x64 Debug Build
(https://mc.dot.net/#/user/nchikanov/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/eea80bba9af50534e761788810fef3c3335cff4f/workItem/System.Runtime.Extensions.Tests/analysis/xunit/System.Tests.UnloadingAndProcessExitTests~2FUnloadingEventMustHappenBeforeProcessExitEvent)

Xunit.Sdk.EqualException Windows.10.Amd64.ClientRS2.Open-Debug-x64 Unhandled Exception of Type Xunit.Sdk.EqualException Message : Assert.Equal() Failure\r\n ? (pos 0)\r\nExpected: \r\nActual: u0u1e0e1\r\n ? (pos 0) Stack Trace : at System.Tests.UnloadingAndProcessExitTests.UnloadingEventMustHappenBeforeProcessExitEvent() in D:\j\workspace\windows-TGrou---33cbf18b\src\System.Runtime.Extensions\tests\System\UnloadingAndProcessExitTests.netcoreapp.cs:line 34

This test can be improved to help narrow down a repro:

  1. The Assert is backwards - expected is u0u1e0e1
  2. Should dump "s" to the file before hooking the events and "h" after hooking- that way we could see if the events simply aren't firing.
    e.g. result should be "shu0u1e0e1"

That will make it easier to follow up on continued failures

@danmoseley
Copy link
Member

Good suggestions @nchikanov go for it :)

@danmoseley danmoseley changed the title Test Failure: UnloadingAndProcessExitTests.netcoreapp.cs:line 34 Test Failure: UnloadingAndProcessExitTests on UAP not firing unloading events Aug 18, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@joperezr joperezr removed the untriaged New issue has not been triaged by the area owner label Jul 1, 2020
Copy link
Contributor

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

@dotnet-policy-service dotnet-policy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime backlog-cleanup-candidate An inactive issue that has been marked for automated closure. disabled-test The test is disabled in source code against the issue help wanted [up-for-grabs] Good issue for external contributors no-recent-activity test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

7 participants