-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix IPC tests in debug asan builds #9710
Fix IPC tests in debug asan builds #9710
Conversation
EWS run on previous version of this PR (hash 04628c7) |
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.
Nice, thanks!
@@ -390,7 +390,7 @@ TEST_P(StreamMessageTest, SendAsyncReplyCancel) | |||
auto cleanup = localReferenceBarrier(); | |||
|
|||
std::atomic<bool> waiting; | |||
BinarySemaphore workQueueWait; | |||
static BinarySemaphore workQueueWait; |
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.
Same problem exists with the waiting
variable.
This could be instead:
TEST_P(StreamMessageTest, SendAsyncReplyCancel)
{
auto cleanup = localReferenceBarrier();
04628c7
to
ba191c9
Compare
EWS run on current version of this PR (hash ba191c9) |
https://bugs.webkit.org/show_bug.cgi?id=251813 Reviewed by Kimmo Kinnunen. There were two issues: 1. workQueueWait was referenced after its stack scope during test tear-down. Make it static to extend its scope past the '}' 2. ReceiveAlreadyInvalidatedClientNoAssert hit a stack overflow because asan uses a little more stack space. Just reduce 1000 iterations to 800 to make that test also run successfully. * Tools/TestWebKitAPI/Tests/IPC/ConnectionTests.cpp: (TestWebKitAPI::TEST_P): * Tools/TestWebKitAPI/Tests/IPC/StreamConnectionTests.cpp: (TestWebKitAPI::TEST_P): Canonical link: https://commits.webkit.org/260099@main
ba191c9
to
49c6254
Compare
Committed 260099@main (49c6254): https://commits.webkit.org/260099@main Reviewed commits have been landed. Closing PR #9710 and removing active labels. |
49c6254
ba191c9
π wincairoπ§ͺ ios-wk2π§ͺ gtk-wk2π§ͺ api-iosπ§ͺ mac-wk1π§ͺ api-gtkπ tvπ§ͺ mac-wk2π§ͺ mac-AS-debug-wk2π watch