History log of /external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c3cb83560daae4c619d1034eb98c1a40ee896387 09-Aug-2016 Christophe JAILLET <christophe.jaillet@wanadoo.fr> selftests/timers: Add missing error code assignment before test

In order to work, the 'err' return value has to be updated otherwise the
test can never be true.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
/external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c
2430ec652dd67243484c90fe34a4433622fc2a30 12-Mar-2015 John Stultz <john.stultz@linaro.org> selftests/timers: Quiet warning due to lack of return check on brk

The posix_timers.c test has a loop that tries to keep it in
kernel space, repeatedly calling brk(). However, it doesn't
check the return value, which causes warnings.

This patch adds a err value which captures the return value
and modifies the test so it will quit if a failure occurs.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
/external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c
884716497d4c777f4b8798fab361b4bad351f5bc 03-Oct-2014 Shuah Khan <shuahkh@osg.samsung.com> selftests/timers: change test to use ksft framework

Change timers test to use kselftest framework to report
test results.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
/external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c
c88b05b2cd07221cdefd56f7f7422c1459eb60c9 16-Oct-2013 Felipe Pena <felipensp@gmail.com> tools/testing/selftests: fix uninitialized variable

The err variable is intended to receive the timer_create() return before
checking it

Signed-off-by: Felipe Pena <felipensp@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c
0bc4b0cf15708fca04095232c4e448634e94d029 28-Jun-2013 Frederic Weisbecker <fweisbec@gmail.com> 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>
/external/linux-kselftest/tools/testing/selftests/timers/posix_timers.c