]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftests: add basic posix timers selftests
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 20 Mar 2013 04:06:56 +0000 (15:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:19 +0000 (16:28 +1100)
commit4851f5e508f25236d3432c5b2109dabb228695e5
tree166d04c7f087945ec3e195307eae9187559d22b5
parentbd231db236ca5166e5cae2661f06dfc824091a58
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]