Repository navigation
Conversation
|
Windows test of this PR. Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, Result: guest_cond_timedwait (1 of 1) pass. Not checked: whether the test fails without the change in the library code; the PR was not tested alone, only in the combined merge (the tests of the other PRs in the batch also pass); no title run; Linux not tested. AI-assisted (Claude Code). |
|
Windows counter-test (follow-up to the earlier Windows run): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, this PR merged onto Not tested: Linux, a console, a title run. AI-assisted (Claude Code). |
|
Coordination note: I opened #5566 for the FreeBSD-compatible handling of a negative AI-assisted: yes; reviewed by MarcZX100. |
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
|
@MarcZX100 Thanks for catching that. Updated in d07879f: the clock-attribute regression now uses the valid expired deadline On Windows, MinGW GCC 15.2 Release, the test built and passed with #4953 merged onto main @oneandonlydean Understood on the closure. I’m leaving this PR closed and will only revisit it with a title ID and a current-main failure log; I’ll hold off on new PRs without a title needing the change. AI-assisted: yes |
What
Reject unsupported clock IDs in
pthread_condattr_setclockwith guestEINVAL(22), preserving the previous clock selection and the caller's errno. On main, selecting an invalid ID such asINT32_MINsucceeds and stores that ID; a later absolute condition wait reaches the unsupported-clock exception instead of the caller receiving the attribute error.Keep the four accepted FreeBSD 11 IDs: 0 (
CLOCK_REALTIME), 1 (CLOCK_VIRTUAL), 2 (CLOCK_PROF) and 4 (CLOCK_MONOTONIC). This followsthr_condattr.c. The validation is in the existing POSIX wrapper; no new exports are introduced. Console clock acceptance has not been measured and is recorded in technical debt.Tested
Windows, MinGW GCC 15.2, Release,
BUILD_TESTING=ON, negative control on main88107b7de, final branch rebased ontoea2bbefb2:pthread_condattr_setclock accepted unsupported clock -2147483648: result 0.INT32_MAXreturn 22, preserve the selected attribute and leave errno unchanged. Null and uninitialized attributes still return 22.ETIMEDOUT(60), and returns with its mutex owned by the caller.88107b7de. All remaining components built, but Windows denied recreation of eight unrelated test outputs (guest_sce_net,guest_poll,guest_socket_read_write,guest_tcp,guest_socket_pair,guest_dup,guest_socket_eventsandguest_fstatfs). Avast's log records automatic sandboxing of the test programs. The local full-build limitation remains; local full-build success is not claimed.Review validation
Ready for maintainer review. Full Linux/Windows CI requires a maintainer's manual dispatch; marking this PR ready does not claim those jobs passed.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository