kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM
authorJohn Stultz <john.stultz@linaro.org>
Thu, 2 Apr 2015 03:43:39 +0000 (20:43 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 2 Apr 2015 16:32:33 +0000 (10:32 -0600)
commit48fd77d1444a387435c3bbc773fa4e7ab6b6aca3
treead3b0afd5e44ad7202eb2a4b6ad5607eddd4996c
parent072264fee89633b676f656613efff7dd5cdbf88a
kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM

The set-timer-lat test fails when testing CLOCK_BOOTTIME_ALARM
or CLOCK_REALTIME_ALARM when the user isn't running as root or
with CAP_WAKE_ALARM.

So this patch improves the error checking so we report the
issue more clearly and continue rather then reporting a failure.

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>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/timers/set-timer-lat.c
This page took 0.02589 seconds and 5 git commands to generate.