Re: [chrony-dev] [PATCH v2 1/2] test: check if RTC is RTC_UIE_ON capable

2019-12-12 Thread Miroslav Lichvar
On Thu, Dec 12, 2019 at 08:39:20AM +0100, Christian Ehrhardt wrote: > --- a/test/system/101-rtc > +++ b/test/system/101-rtc > @@ -4,6 +4,7 @@ > > check_chronyd_features RTC || test_skip "RTC support disabled" > [ -c "/dev/rtc" ] || test_skip "missing /dev/rtc" > +hwclock -r --test | grep -q

[chrony-dev] [PATCH v2 1/2] test: check if RTC is RTC_UIE_ON capable

2019-12-11 Thread Christian Ehrhardt
The test might run on different platforms. If the platform happens to have a RTC that does exist but unable to have RTC_UIE_ON set the test will fall into an infinite hang. Exampls of bad clocks are: - ppc64el: rtc-generic - arm64: rtc-efi To avoid that check the capability via `hwclock` before