HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0028 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0028.


Report 0028 Actions


    Problem Report Number 0028
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0028
    Raised 1992-09-18 08:00
    Updated 2003-03-13 08:00
    Published 1992-09-29 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.3
    Test Identification ANSI.os/time/mktime 19
    Problem Summary TSD4.028 The test code fails because the code uses INT_MAX as the value for the year field in the struct tm. It then attempts to calculate the number of seconds using this figure which overflows on our system....
    Problem Text
    The test code fails because the code uses INT_MAX as the value
    for the year field in the struct tm. It then attempts to
    calculate the number of seconds using this figure which overflows
    on our system.

    I presume that the reason that this error occurs is because the
    code assumes that time_t is a larger size than int, which in
    our implementation is not the case; long's & int's and time_t's
    are all the same size (32-bits).

    I recommend that the test code be changed to reduce the value of
    tm_year being used to a more sensible value; 70 should be ideal
    since this should be representable in all circumstances on all
    machines (as it approximates to the epoch).
    Test Output

    ******************************************************************
    /tset/ANSI.os/time/mktime/T.mktime 66 Unresolved

    child process was terminated by signal 8 (SIGFPE)
    ******************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a test suite fault and a permanent waiver is recommended.

    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:

     

    Back   


Contact the Certification Authority