]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftests: add basic posix timers selftests
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 26 Mar 2013 23:24:10 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:04:10 +0000 (17:04 +1100)
commitf47df695deb97ae91ec65a9317eef94c870c7377
tree37f5a5d14b68226086c3326a8ff48f7e4ccef297
parent9f849181dbcf5dd1ecf5c9ba8fb3d179fb0ae9ef
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/timers/Makefile [new file with mode: 0644]
tools/testing/selftests/timers/posix_timers.c [new file with mode: 0644]