linux/tools/testing/selftests/timers
Uwe Kleine-König e21a47ff4d rtc: rtctest: enabling UIE for a chip that doesn't support it returns EINVAL
Calling ioctl(..., RTC_UIE_ON, ...) without CONFIG_RTC_INTF_DEV_UIE_EMUL
either ends in rtc_update_irq_enable if rtc->uie_unsupported is true
or in __rtc_set_alarm in the if (!rtc->ops->set_alarm) branch. In both
cases the return value is -EINVAL. So check for that one instead of
ENOTTY.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2015-11-03 00:50:46 +01:00
..
.gitignore selftests/timers: Make git ignore all binaries in timers test suite 2015-05-26 15:58:06 -06:00
alarmtimer-suspend.c kselftests: timers: Check _ALARM clockids are supported before suspending 2015-05-26 15:58:07 -06:00
change_skew.c selftests/timers: Add change_skew test from timetest suite 2015-03-12 13:22:15 -06:00
clocksource-switch.c selftests/timers: Add clocksource-switch test from timetest suite 2015-03-12 13:22:15 -06:00
inconsistency-check.c kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat 2015-03-31 13:44:32 -06:00
leap-a-day.c selftest: Timers: Avoid signal deadlock in leap-a-day 2015-06-18 15:28:14 +02:00
leapcrash.c selftests/timers: Add leapcrash test from the timetest suite 2015-03-12 13:22:16 -06:00
Makefile Documentation, split up rtc.txt into documentation and test file 2015-03-24 22:01:58 -06:00
mqueue-lat.c selftests/timers: Add mqueue latency test from the timetest suite 2015-03-12 13:22:14 -06:00
nanosleep.c selftests/timers: Add nanosleep test from timetest suite 2015-03-12 13:22:13 -06:00
nsleep-lat.c selftests/timers: Add nsleep-lat test from timetest suite 2015-03-12 13:22:13 -06:00
posix_timers.c selftests/timers: Quiet warning due to lack of return check on brk 2015-03-12 13:22:12 -06:00
raw_skew.c selftests/timers: Add clock skew estimation test from timetest suite 2015-03-12 13:22:13 -06:00
rtctest.c rtc: rtctest: enabling UIE for a chip that doesn't support it returns EINVAL 2015-11-03 00:50:46 +01:00
set-2038.c selftests/timers: Add set-2038 test from timetest suite 2015-03-12 13:22:16 -06:00
set-tai.c selftests/timers: Add set-tai from the timetest suite 2015-03-12 13:22:16 -06:00
set-timer-lat.c kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM 2015-04-02 10:32:33 -06:00
skew_consistency.c selftests/timers: Add skew_consistency test from the timetests suite 2015-03-12 13:22:15 -06:00
threadtest.c kselftest/timers: Set default threadtest values to simplify execution scripts 2015-03-19 12:03:34 -06:00
valid-adjtimex.c selftests/timers: Add adjtimex validation test from timetest suite 2015-03-12 13:22:14 -06:00