|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1359 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 1359.
Report 1359 Actions
Problem Report Number 1359 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0641 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1997-01-10 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.1 Test Identification base/getitimer 2-3 Problem Summary TSD4U.00176 This test may fail on implementations that optimize a needed loop out of existence. Problem Text
This test may fail on implementations that optimize a needed loop out of
existence.
getitimer[2,3] tests fail because code in fgetitimer2.c (and 3.c
also) is being optimized out by the compiler, thereby affecting
the outcome of the test. In particular, when check_getitimer() is
called with the 'which' argument set to ITIMER_VIRTUAL, the test
intends to consume TIMER_CONSUMED (i.e., 18) seconds of user time
within the 10 minute limit allotted to the test. Consumption of
user time is accomplished by executing the following loop until
the target quantity of user time is accrued:
================
244 for (i = 0; i < 100000; i++)
245 j = (i * i) - i + 3 * i;
================
However, since the variables 'i' and 'j' are unused elsewhere in the
program, this loop is optimized out (and rightfully so) by the compiler if
the test is built using any optimization level including the default -O1.
Test Output
TEST PURPOSE #2
A call to int getitimer(int which, struct
itimerval *value) when which is ITIMER_VIRTUAL shall
store the current value of the ITIMER_VIRTUAL timer
into the structure pointed to by value and return 0.
PREP: Open a temporary scratch file
PREP: Set the ITIMER_VIRTUAL timer to a known value.
PREP: Loop in the program for arbitrary time.
Perform dummy I/O on temporary scratch file.
ERROR: Test took longer than 600 seconds: presuming
function is hung and terminating test
2 FAIL
TEST PURPOSE #3
A successful call to int getitimer(int which, struct
itimerval *value) when which is ITIMER_PROF shall
store the current value of the ITIMER_PROF timer into
the structure pointed to by value and return 0.
PREP: Open a temporary scratch file
PREP: Set the ITIMER_PROF timer to a known value.
PREP: Loop in the program for arbitrary time.
Perform dummy I/O on temporary scratch file.
ERROR: Test took longer than 600 seconds: presuming
function is hung and terminating test
3 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 1359
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority