|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1477 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1477.
Report 1477 Actions
Problem Report Number 1477 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0759 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-10-31 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.0.2 Test Identification base/setitimer 8 Problem Summary TSD4U.00054 The test may fail on implementations because the test does not accumulate enough process time before timing out. Problem Text
The test may fail on implementations because the test does not
accumulate enough process time before timing out.
line 14:
According to the X/OPEN man pages for setitimer:
ITIMER_VIRTUAL decrements in process virtual time. It
runs only when the process is executing. A SIGVTALARM
is delivered when it expires.
Since the test does not accumulate enough process time, the
test timed out (if we increase the timeout, the test passes).
In summary,
This is a test error. The recommended code change is to add
code in the following loop to accumulate more process time:
while ((now_time - st) < ((double)TOTAL_TIMER_SET + 20.0))
{
if (sig_recvd_flag)
return;
now_time = get_time(ITIMER_VIRTUAL);
for (i=0; i< 10000; i++)
j++;
}
Test Output
1 SECTION: Discrete Tests
2
3 TEST CASE: setitimer
4
5 TEST PURPOSE #8
6 A call to int setitimer(int which, const
7 struct itimerval *value, struct itimerval *ovalue)
8 when which is ITIMER_VIRTUAL shall decrement the timer
9 in process virtual time and deliver a SIGVTALRM signal
10 to the calling process when the timer expires.
11 PREP: Set the timer to a known value
12 TEST: setitimer() for ITIMER_VIRTUAL generates the
13 SIGVTALRM signal after timer expiration
14 ERROR: Timed out waiting for timer to expire
15 SIGVTALRM was not delivered
16 8 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a test suite deficiency in the test
suite version(s) listed.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1477
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority