Re: [PATCH] selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms
From: Greg Hackmann
Date: Fri Sep 22 2017 - 11:51:20 EST
On 09/22/2017 07:41 AM, Shuah Khan wrote:
I assume you are good with this fix. I plan to apply it to linux-kselftest fixes
today. Please let me know if you have any objections.
AIUI this check was added so set-timer-lat would treat a missing
CAP_WAKE_ALARM as a skipped test (rather than making the entire test
fail). So setup_timer()'s callers would need to treat this as a special
case, by returning immediately but with a return value of 0.