]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftests: add basic posix timers selftests
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 9 May 2013 23:57:10 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:37 +0000 (14:17 +1000)
commit281e02339dbec4c225a7bcbe80e1179e3fa5d624
treeeac11da91b1624b87fc651d6e7f73aacee786a7b
parentaf7ddf05a58a7dbc0d67e6b22f54f554fae603cd
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]