Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline and AI policy for information on the review process. ConflictsNo conflicts as of last run. |
|
Regarding the failing test ( diff --git a/test/mp/test/listen_tests.cpp b/test/mp/test/listen_tests.cpp
index 41fb05a..d8d4984 100644
--- a/test/mp/test/listen_tests.cpp
+++ b/test/mp/test/listen_tests.cpp
@@ -253,8 +253,8 @@ KJ_TEST("ListenConnections handles a client that disconnects before being accept
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
-#ifndef __APPLE__
- // No error is expected on platforms other than macOS.
+#if !defined(__APPLE__) && !defined(__sun)
+ // No error is expected on platforms other than macOS and illumos.
KJ_REQUIRE(!accept_error_seen());
#endif
KJ_EXPECT(server.DisconnectedCount() == (accept_error_seen() ? 0 : 1));
|
Yeah. I've already applied the patch in https://github.com/hebasto/bitcoin-core-nightly. |
Yeah, I noticed it, but that patch is for Cap'n Proto. What I suggested is a diff for test code in this repo, as is done for the macOS job. |
33be4c6 to
0ccee7c
Compare
|
Rebased on #396 as requested by @ryanofsky here. |
…tion macro fb0e194 build, util: Add `HAVE_PTHREAD_SETNAME_NP_2ARG` configuration macro (Hennadii Stepanov) 7690c22 util: Document platforms in `SetOsThreadName()` branches (Hennadii Stepanov) Pull request description: On platforms that provide only the 2-argument [`pthread_setname_np()`](https://illumos.org/man/3C/pthread_setname_np) function, such as illumos, none of the branches in `SetOsThreadName()` matches, so threads are left unnamed. As `pthread_getname_np()` is available there, the thread name tests [fail](#393). Introduce the `HAVE_PTHREAD_SETNAME_NP_2ARG` configuration macro, which represents the availability of that function, and use it in `SetOsThreadName()`. Platforms already handled by another branch are not affected. Additionally, the first commit documents the platforms for every branch in `SetOsThreadName()`, as [suggested](#324 (comment)) by ryanofsky in #324. ACKs for top commit: ryanofsky: Code review ACK fb0e194. This fixes the "has OS thread name" tests on illumos, confirmed by the [OpenIndiana job](https://github.com/bitcoin-core/libmultiprocess/actions/runs/43943281672/job/133566143311) in #393, which is now based on this PR and passes all three tests (its remaining failure is the unrelated listen test). Tree-SHA512: 1630db4de214d4f5180c81e27adaa1b6ef553d1f4d8a9956e137b8fc599452968763f8964a1d27ecea2d38c3677efb23d071eb6d7c60c2a00c0184d79973320f
0ccee7c to
3f424df
Compare
This covers code paths for illumos-based systems.
3f424df to
20cbe8c
Compare
|
Rebased to resolve a conflict with the merged #373. |
The new CI job covers code paths for illumos-based systems.
Draft for now, as the "disconnects before being accepted" test fails, which is a reincarnation of #319.