selftests: rtc: rtctest: fix alarm tests
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 18 Dec 2018 21:34:20 +0000 (22:34 +0100)
committerShuah Khan <shuah@kernel.org>
Tue, 15 Jan 2019 01:49:05 +0000 (18:49 -0700)
commitfdac94489c4d247088b3885875b39b3e1eb621ef
tree0fab788e0e87e3bd930d748afbda0912d84d96f3
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
selftests: rtc: rtctest: fix alarm tests

Return values for select are not checked properly and timeouts may not be
detected.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/rtc/rtctest.c