]> Gentwo Git Trees - linux/.git/commit
selftests/timers/nanosleep: Add tests for return of remaining time
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 6 Nov 2025 15:15:24 +0000 (16:15 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Nov 2025 19:34:50 +0000 (20:34 +0100)
commit308bc2e33885df9288d3f1ed946a2b212e37db62
tree0600894051f12117a140ccc6c10f974dd6e0976b
parent05d89fe7e46a52bb5dde7ac3f07b383895fab528
selftests/timers/nanosleep: Add tests for return of remaining time

If interrupted by a signal clock_nanosleep() returns the remaining time
into the structure pointed to by the rmtp parameter. So far this
functionality was not tested by the timer selftests.

Extend the nanosleep selftest to cover this feature.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251106-nanosleep-rtmp-selftest-v1-1-f9212fb295fe@linutronix.de
tools/testing/selftests/timers/nanosleep.c