]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftests: add basic posix timers selftests
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 23 May 2013 00:36:59 +0000 (10:36 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:06 +0000 (16:08 +1000)
commitaab90b29dfe157bfd0624a65a5ca87a4fdfa314d
tree6cec96a36885c7e29bef551f16e8be01a212b3fc
parent73c99a25c454b23c875a45c462cc023124f07458
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]