From: Subrata M. <su...@li...> - 2009-10-18 18:22:11
|
On Thu, 2009-10-15 at 19:48 -0700, Henry Yei wrote: > All, > > Here are three patches the help with the issue where these tests miss a signal and hang. The original patches were created before the latest check-ins by jpa...@we... , but I believe they still help. I've regenerated the patches against CVS source and tested on a multi-core machine running MVL6 (x86 2.6.28) > > The clock_nanosleep01 patch changes signal to the more reliable sigaction(). > > mq_timedsend01 patch changes from signal() to sigaction() and corrects the time-specs > used by the test. Timespec's passed to mq_timedsend are abs time, not relative > time. The patch adds the current time to convert relative time to abs time but > only if the change won't invalidate the test objective. For example, if the > test would have passed -1 for tv_sec to cause an invalid time error, adding the > current time would prevent the expected error. > > mq_timedrecieve01.patch changes from signal() to sigaction() and corrects the time-specs > used by the test. Timespec's passed to mq_timedreceive are abs time, not > relative > time. The patch adds the current time to convert relative time to abs time but > only if the change won't invalidate the test objective. For example, if the > test would have passed -1 for tv_sec to cause an invalid time error, adding the > current time would prevent the expected error. The timeout for SIGINT test is > extended to allow time for the signal to arrive. > > Original patches provided by Randy Vinson <rv...@mv...> > > Signed-off by: Henry Yei <hy...@mv...> Thanks. Regards-- Subrata > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ Ltp-list mailing list Ltp...@li... https://lists.sourceforge.net/lists/listinfo/ltp-list |