selftests: add basic posix timers selftests
Add some initial basic tests on a few posix timers interface such as setitimer() and timer_settime(). These simply check that expiration happens in a reasonable timeframe after expected elapsed clock time (user time, user + system time, real time, ...). This is helpful for finding basic breakages while hacking on this subsystem. Signed-off-by:Frederic Weisbecker <fweisbec@gmail.com> Cc: Stanislaw Gruszka <sgruszka@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com> Cc: Olivier Langlois <olivier@trillion01.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- tools/testing/selftests/Makefile 1 addition, 0 deletionstools/testing/selftests/Makefile
- tools/testing/selftests/timers/Makefile 8 additions, 0 deletionstools/testing/selftests/timers/Makefile
- tools/testing/selftests/timers/posix_timers.c 221 additions, 0 deletionstools/testing/selftests/timers/posix_timers.c
tools/testing/selftests/timers/Makefile
0 → 100644
Please register or sign in to comment