* Re: about selftests/rtc test related stuff [not found] <CAG=yYwk+g28_dnOcN--w-PLbGtA2oM5tq14W4X5bBjdurnF2iA@mail.gmail.com> @ 2019-05-23 17:47 ` Alexandre Belloni 2019-05-23 21:06 ` Jeffrin Thalakkottoor 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Belloni @ 2019-05-23 17:47 UTC (permalink / raw) To: Jeffrin Thalakkottoor Cc: a.zummo, Shuah Khan, linux-rtc, linux-kselftest, lkml On 23/05/2019 22:29:36+0530, Jeffrin Thalakkottoor wrote: > I get the following result when i run "rtctest" > please see the following.... > -----------------x------------------------x----------------- > $pwd > /home/jeffrin/upstream/linux-kselftest/tools/testing/selftests/rtc > $./rtctest > [==========] Running 7 tests from 2 test cases. > [ RUN ] rtc.date_read > rtctest.c:32:rtc.date_read:Expected -1 (18446744073709551615) != > self->fd (18446744073709551615) > rtc.date_read: Test terminated by assertion Your user probably doesn't have access to the rtc device file. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about selftests/rtc test related stuff 2019-05-23 17:47 ` about selftests/rtc test related stuff Alexandre Belloni @ 2019-05-23 21:06 ` Jeffrin Thalakkottoor 2019-05-23 22:52 ` Alexandre Belloni 0 siblings, 1 reply; 5+ messages in thread From: Jeffrin Thalakkottoor @ 2019-05-23 21:06 UTC (permalink / raw) To: Alexandre Belloni; +Cc: a.zummo, Shuah Khan, linux-rtc, linux-kselftest, lkml On Thu, May 23, 2019 at 11:17 PM Alexandre Belloni <alexandre.belloni@bootlin.com> wrote: > Your user probably doesn't have access to the rtc device file. anyway thanks related Following is the result with sudo.... ------------------------x--------------------------------------x---------------------------- $sudo ./rtctest [sudo] password for jeffrin: [==========] Running 7 tests from 2 test cases. [ RUN ] rtc.date_read rtctest.c:49:rtc.date_read:Current RTC date/time is 23/05/2019 20:49:49. [ OK ] rtc.date_read [ RUN ] rtc.uie_read [ OK ] rtc.uie_read [ RUN ] rtc.uie_select [ OK ] rtc.uie_select [ RUN ] rtc.alarm_alm_set rtctest.c:137:rtc.alarm_alm_set:Alarm time now set to 20:49:58. rtctest.c:156:rtc.alarm_alm_set:data: 1a0 [ OK ] rtc.alarm_alm_set [ RUN ] rtc.alarm_wkalm_set rtctest.c:195:rtc.alarm_wkalm_set:Alarm time now set to 23/05/2019 20:50:01. [ OK ] rtc.alarm_wkalm_set [ RUN ] rtc.alarm_alm_set_minute rtctest.c:239:rtc.alarm_alm_set_minute:Alarm time now set to 20:51:00. Alarm clock $rtctest.c:258:rtc.alarm_alm_set_minute:data: 1a0 $ ------------------------x--------------------------------------x---------------------------- -- software engineer rajagiri school of engineering and technology ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about selftests/rtc test related stuff 2019-05-23 21:06 ` Jeffrin Thalakkottoor @ 2019-05-23 22:52 ` Alexandre Belloni 2019-05-24 13:53 ` Jeffrin Thalakkottoor 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Belloni @ 2019-05-23 22:52 UTC (permalink / raw) To: Jeffrin Thalakkottoor Cc: a.zummo, Shuah Khan, linux-rtc, linux-kselftest, lkml On 24/05/2019 02:36:42+0530, Jeffrin Thalakkottoor wrote: > On Thu, May 23, 2019 at 11:17 PM Alexandre Belloni > <alexandre.belloni@bootlin.com> wrote: > > Your user probably doesn't have access to the rtc device file. > anyway thanks related > Following is the result with sudo.... > ------------------------x--------------------------------------x---------------------------- > $sudo ./rtctest > [sudo] password for jeffrin: > [==========] Running 7 tests from 2 test cases. > [ RUN ] rtc.date_read > rtctest.c:49:rtc.date_read:Current RTC date/time is 23/05/2019 20:49:49. > [ OK ] rtc.date_read > [ RUN ] rtc.uie_read > [ OK ] rtc.uie_read > [ RUN ] rtc.uie_select > [ OK ] rtc.uie_select > [ RUN ] rtc.alarm_alm_set > rtctest.c:137:rtc.alarm_alm_set:Alarm time now set to 20:49:58. > rtctest.c:156:rtc.alarm_alm_set:data: 1a0 > [ OK ] rtc.alarm_alm_set > [ RUN ] rtc.alarm_wkalm_set > rtctest.c:195:rtc.alarm_wkalm_set:Alarm time now set to 23/05/2019 20:50:01. > [ OK ] rtc.alarm_wkalm_set > [ RUN ] rtc.alarm_alm_set_minute > rtctest.c:239:rtc.alarm_alm_set_minute:Alarm time now set to 20:51:00. > Alarm clock > $rtctest.c:258:rtc.alarm_alm_set_minute:data: 1a0 > I just sent a fix for that timeout issue. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about selftests/rtc test related stuff 2019-05-23 22:52 ` Alexandre Belloni @ 2019-05-24 13:53 ` Jeffrin Thalakkottoor 2019-05-24 17:04 ` Alexandre Belloni 0 siblings, 1 reply; 5+ messages in thread From: Jeffrin Thalakkottoor @ 2019-05-24 13:53 UTC (permalink / raw) To: Alexandre Belloni; +Cc: a.zummo, Shuah Khan, linux-rtc, linux-kselftest, lkml On Fri, May 24, 2019 at 4:22 AM Alexandre Belloni <alexandre.belloni@bootlin.com> wrote: > I just sent a fix for that timeout issue. anyway thanks related to that shall i send a selftest fix that bail out in the test program if the user does not have root privileges ? -- software engineer rajagiri school of engineering and technology ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about selftests/rtc test related stuff 2019-05-24 13:53 ` Jeffrin Thalakkottoor @ 2019-05-24 17:04 ` Alexandre Belloni 0 siblings, 0 replies; 5+ messages in thread From: Alexandre Belloni @ 2019-05-24 17:04 UTC (permalink / raw) To: Jeffrin Thalakkottoor Cc: a.zummo, Shuah Khan, linux-rtc, linux-kselftest, lkml On 24/05/2019 19:23:57+0530, Jeffrin Thalakkottoor wrote: > On Fri, May 24, 2019 at 4:22 AM Alexandre Belloni > <alexandre.belloni@bootlin.com> wrote: > > I just sent a fix for that timeout issue. > > anyway thanks related to that > shall i send a selftest fix that bail out in the test program if the > user does not have root privileges ? > No, it bails out just fine. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-05-24 17:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAG=yYwk+g28_dnOcN--w-PLbGtA2oM5tq14W4X5bBjdurnF2iA@mail.gmail.com>
2019-05-23 17:47 ` about selftests/rtc test related stuff Alexandre Belloni
2019-05-23 21:06 ` Jeffrin Thalakkottoor
2019-05-23 22:52 ` Alexandre Belloni
2019-05-24 13:53 ` Jeffrin Thalakkottoor
2019-05-24 17:04 ` Alexandre Belloni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).