-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm][debugger] Fix some racy tests #64712
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
Conversation
|
Tagging subscribers to this area: @thaystg Issue Detailsnull
|
This test is set up to pause on all exceptions. So, it has some code to hit `Debugger.resume` 100 times, hoping to skip all the non-user code exceptions. But this can sometimes not be enough, and you might have more exceptions which breaks rest of the test. Instead, we try to resume till we won't get paused for a period of 10secs. And after that, we can call the user code, and execute rest of the test. Fixes dotnet#62666 .
`DebuggerTests.MiscTests.DebugLazyLoadedAssemblyWithEmbeddedPdb` `DebuggerTests.BreakpointTests.BreakpointInAssemblyUsingTypeFromAnotherAssembly_BothDynamicallyLoaded` These tests load assemblies dynamically, and depend on breakpoints in those assemblies being resolved. But the tests don't wait for that to happen. So, they can some times fail when the managed method is invoked before the breakpoint being resolved. Fixes dotnet#62823 Fixes dotnet#62667
eba3073 to
58a7925
Compare
lewing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, should we add an explicit timeout option?
There is a per test timeout. Is that the one you meant? |
|
.. and I did test the case where the breakpoint is never hit, and the test fails with a timeout. |
|
Wasm (unrelated) test failures are because of #64769 . The (unrelated) |
tests that use late loaded assemblies
DebuggerTests.MiscTests.DebugLazyLoadedAssemblyWithEmbeddedPdbDebuggerTests.BreakpointTests.BreakpointInAssemblyUsingTypeFromAnotherAssembly_BothDynamicallyLoadedExceptionTestAllWithReloadFixes #62666
Fixes #62823
Fixes #62667