CVS commit: src/tests/kernel
"Christos Zoulas" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: christos Date: Sun Feb 15 13:13:37 UTC 2026 Modified Files: src/tests/kernel: t_mqueue.c Log Message: PR/60002: Enji Cooper: mq_open in FreeBSD and NetBSD both state that the path provided to the target mqueue should (in the POSIX parlance of "should") start with a /. In FreeBSD this proved to be more of an issue than NetBSD (especially when `kyua debug` was involved). Instead of relying on a temp directory which might exist outside the kyua sandbox, make the mqueue path absolute to the prefix `/t_mqueue` (for consistency with the test), and add the test PID to the path to avoid potential collisions between back-to-back / concurrent test runs. While here, explicitly cast the checked return value to `mqd_t`: this is needed because some platforms--including FreeBSD--might define `mqd_t` as an unsigned type instead of a signed type. Casting it to `mqd_t` helps quell a valid compiler warning in that case. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/kernel/t_mqueue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.