selftests: rtc: rtctest: fix alarm tests
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 18 Dec 2018 21:34:20 +0000 (22:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:58:47 +0000 (17:58 +0100)
commit2409a869dad3463878efbae72d6a42087f4614dd
tree6edb6446974f5aeadb9cc307fc59861cb3d98fed
parent4670e8391710281740e3f2737750d4c38a1a8285
selftests: rtc: rtctest: fix alarm tests

[ Upstream commit fdac94489c4d247088b3885875b39b3e1eb621ef ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/rtc/rtctest.c