summaryrefslogtreecommitdiffstats
path: root/kernel/tools/testing/selftests/timers/rtctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/testing/selftests/timers/rtctest.c')
-rw-r--r--kernel/tools/testing/selftests/timers/rtctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/tools/testing/selftests/timers/rtctest.c b/kernel/tools/testing/selftests/timers/rtctest.c
index d80ae8523..624bce51b 100644
--- a/kernel/tools/testing/selftests/timers/rtctest.c
+++ b/kernel/tools/testing/selftests/timers/rtctest.c
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
/* Turn on update interrupts (one per second) */
retval = ioctl(fd, RTC_UIE_ON, 0);
if (retval == -1) {
- if (errno == ENOTTY) {
+ if (errno == EINVAL) {
fprintf(stderr,
"\n...Update IRQs not supported.\n");
goto test_READ;