On 03/24/2011 12:36 AM, Cyril Hrubis wrote:
> Hi!
>    
>> According to POSIX, many historical implementations (including Version 7
>> and System V) allow an alarm to occur up to a second early. Other
>> implementations allow alarms up to half a second or one clock tick early
>> or do not allow them to occur early at all. That means, the SIGALRM sent
>> by alarm() could arrive a little earlier. So, even if sem_wait() is
>> blocked, test could still fail.
>> Setting a range for time checking would be better. When sem_wait() is
>> block and then be interrupted by SIGALRM, if the time is in this range,
>> test is passed.
>>      
> Out of curiosity, what system is this? The signal seems to arrives after
> more than 1 second on all linux boxes that I have.
>    
My box is like the following:

OS: RHEL5.5 x86-64.
Memory: 2GB
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (4 CPUs)


Sometimes it worked normally, but sometimes I got the following messages:

   Ts: 1300437153.432960442  ->  1300437154.432457949
   Test ../../../conformance/interfaces/sem_wait/13-1.c
   FAILED: The sem_wait call did not block




-- 
Best Regards,
Tang chen
--------------------------------------------------
Tang Chen
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8513
FUJITSU INTERNAL: 7998-8513
FAX: +86+25-83317685
EMail: [email protected]
--------------------------------------------------
This communication is for use by the intended recipient(s) only and may contain 
information that is privileged, confidential and exempt from disclosure under 
applicable law. If you are not an intended recipient of this communication, you 
are hereby notified that any dissemination, distribution or copying hereof is 
strictly prohibited.  If you have received this communication in error, please 
notify me by reply e-mail, permanently delete this communication from your 
system, and destroy any hard copies you may have printed



------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to