On 3/4/10, Rishikesh K Rajak <[email protected]> wrote: >>Rishi, > >>Can you test this patch on the machine on which the tests got stuck >>earlier? > > Yes i tested and found that, it is failing.
It is supposed to fail :) . What we wanted was a way to come out of the tests if the alarm fails to ring. > > [r...@x335a rtc]# ./rtc-test /dev/rtc > rtc01 0 TINFO : RTC READ TEST: > rtc01 1 TPASS : RTC READ TEST Passed > rtc01 0 TINFO : Current Date/time is 03/03/10 12:38:26 PM > rtc01 0 TINFO : RTC ALARM TEST : > rtc01 0 TINFO : Alarm time set to 12:38:31. > rtc01 0 TINFO : Waiting 5 seconds for the alarm... > rtc01 2 TFAIL : Timed out waiting for the alarm > rtc01 0 TINFO : RTC UPDATE INTERRUPTS TEST : > rtc01 0 TINFO : Waiting for 5 update interrupts... > rtc01 0 TINFO : Update interrupt 1 > rtc01 0 TINFO : Update interrupt 2 > rtc01 0 TINFO : Update interrupt 3 > rtc01 0 TINFO : Update interrupt 4 > rtc01 0 TINFO : Update interrupt 5 > rtc01 3 TPASS : RTC UPDATE INTERRUPTS TEST Passed > rtc01 0 TINFO : RTC Tests Done! > [r...@x335a rtc]# ls -l /dev/rtc* > crw-r--r-- 1 root root 10, 135 Feb 20 13:51 /dev/rtc > [r...@x335a rtc]# > > > > In fact while compiling there is some warning also. > [r...@x335a rtc]# make > cc rtc-test.c -O2 -Wall -I ../../../../include/ -L ../../../../lib/ > -lltp -o rtc-test > rtc-test.c: In function ‘read_alarm_test’: > rtc-test.c:64: warning: dereferencing type-punned pointer will break > strict-aliasing rules I did not get this warning on gcc-4.3.0 . Anyways I think we can get rid of this warning by using -fno-strict-aliasing option at the cost of some optimizations. I will send you another patch. Thanks, Silesh > > Please solve these problems and please send me a revised patch. > > -- > Thanks & Regards > Rishi > LTP Maintainer > IBM, LTC, Bangalore > Please join IRC #ltp @ irc.freenode.net > -- Silesh ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
