Test that async processing threads correctly handle incoming requests while waiting on another. Also use the opportunity to refactor some of the tests to remove the try-catch blocks. Broken out from https://github.com/bitcoin-core/libmultiprocess/pull/300
test: recursive async IPC calls and cleanups #301
pull Eunovo wants to merge 1 commits into bitcoin-core:master from Eunovo:2026-recursive-IPC-test changing 1 files +21 −52-
Eunovo commented at 6:32 AM on July 1, 2026: contributor
-
5519f7f948
test: recursive async IPC calls
Test that async processing threads correctly handle incoming requests while waiting on another. Also use the opportunity to refactor some of the tests to remove the try-catch blocks.
-
DrahtBot commented at 6:33 AM on July 1, 2026: none
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
Type Reviewers ACK ryanofsky If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #300 (Server-wide ThreadPool by Eunovo)
- #288 (Create
supportbranch for CI scripts, documentation, and examples by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
-
in test/mp/test/test.cpp:45 in 5519f7f948
37 | @@ -38,6 +38,15 @@ 38 | #include <utility> 39 | #include <vector> 40 | 41 | +//! Assert that a call throws std::runtime_error with the given message. 42 | +#define EXPECT_EXCEPTION(call, message) \ 43 | + try { \ 44 | + call; \ 45 | + KJ_EXPECT(false); \
ryanofsky commented at 8:31 PM on July 5, 2026:In commit "test: recursive async IPC calls" (5519f7f9485c342d7c868846985750d6f152f359)
Could be better to improve output in this case with something like
KJ_FAIL_EXPECT("Expected exception was not thrown: " message)ryanofsky approvedryanofsky commented at 8:32 PM on July 5, 2026: collaboratorCode review ACK 5519f7f9485c342d7c868846985750d6f152f359. Thanks for the new test and test cleanup!
ryanofsky merged this on Jul 5, 2026ryanofsky closed this on Jul 5, 2026
This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-14 21:30 UTC
More mirrored repositories can be found on mirror.b10c.me