NetBSD-Bugs archive

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

PR/58733 CVS commit: src



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

From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/58733 CVS commit: src
Date: Wed, 9 Oct 2024 13:02:54 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Wed Oct  9 13:02:54 UTC 2024
 
 Modified Files:
 	src/distrib/sets/lists/debug: mi
 	src/distrib/sets/lists/tests: mi
 	src/tests/kernel: Makefile
 Added Files:
 	src/tests/kernel: t_nanosleep.c
 
 Log Message:
 Add a test for clock_nanotime() [ PR kern/58733 ]
 
 Add a t_nanosleep test to the kernel tests, to (to a limited extent)
 validate its functionality.
 
 Initially this concentrates on the issue from PR kern/58733
 where if a process paused in nanosleep() is stopped, and then
 continued, and if it is using TIMER_ABSTIME, the call will
 return prematurely, but indicating success.
 
 There are (currently) 4 test cases, to test all 4 possibilities
 using CLOCK_MONOTONIC and CLOCK_REALTIME (if someone wants to
 add any other clocks that make sense, that should be easy) and
 TIMER_ABSTIME and TIMER_RELTIME.
 
 Currently both TIMER_ABSTIME tests fail (the TIMER_RELTIME
 tests pass).   When the kernel bug is fixed, the ABSTIME
 tests should be fixed along with it.
 
 These tests are currently somewhat crude, and I'm not sure
 how well they will work on a qemu test system (they work as
 expected on bare metal).
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.450 -r1.451 src/distrib/sets/lists/debug/mi
 cvs rdiff -u -r1.1340 -r1.1341 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.81 -r1.82 src/tests/kernel/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/kernel/t_nanosleep.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