NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/60002 CVS commit: src/tests/kernel



The following reply was made to PR bin/60002; it has been noted by GNATS.

From: "Christos Zoulas" <christos%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60002 CVS commit: src/tests/kernel
Date: Sun, 15 Feb 2026 08:13:37 -0500

 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.
 


Home | Main Index | Thread Index | Old Index