diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/timers/set-timer-lat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/timers/set-timer-lat.c b/tools/testing/selftests/timers/set-timer-lat.c index 2ed326750ffe..4fc98c5b0899 100644 --- a/tools/testing/selftests/timers/set-timer-lat.c +++ b/tools/testing/selftests/timers/set-timer-lat.c | |||
@@ -139,6 +139,13 @@ int do_timer(int clock_id, int flags) | |||
139 | 139 | ||
140 | err = timer_create(clock_id, &se, &tm1); | 140 | err = timer_create(clock_id, &se, &tm1); |
141 | if (err) { | 141 | if (err) { |
142 | if ((clock_id == CLOCK_REALTIME_ALARM) || | ||
143 | (clock_id == CLOCK_BOOTTIME_ALARM)) { | ||
144 | printf("%-22s %s missing CAP_WAKE_ALARM? : [UNSUPPORTED]\n", | ||
145 | clockstring(clock_id), | ||
146 | flags ? "ABSTIME":"RELTIME"); | ||
147 | return 0; | ||
148 | } | ||
142 | printf("%s - timer_create() failed\n", clockstring(clock_id)); | 149 | printf("%s - timer_create() failed\n", clockstring(clock_id)); |
143 | return -1; | 150 | return -1; |
144 | } | 151 | } |