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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0030 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 0030.


Report 0030 Actions


    Problem Report Number 0030
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0030
    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/streamio/freopen 36
    Problem Summary TSD4.030 The test suite is in error. The sequence of the code within the test is as follows. fopen file() write() file freopen() file sleep(2s) stat() file It is this stat() that checks these times. The test e...
    Problem Text

    The test suite is in error. The sequence of the code within the
    test is as follows.

    fopen file()
    write() file
    freopen() file
    sleep(2s)
    stat() file

    It is this stat() that checks these times. The test expects the close()
    done by the freopen() to update these fields in the inode and indeed
    it does. Unfortunately, the second open() done inside the freopen
    is called with O_TRUNC which is defined by XPG4 to mark the st_[cm]time
    fields for update. O_TRUNC is passed in as a consequence of "w" being
    set on the call to freopen().

    The error in the timing occurs because although the fields are marked
    for update by the 2nd open() it is defined on p14 of the XBD that
    these fields will not be changed in the inode until an update point.
    "Two such update points are when the file is no longer open
    by any process and when stat() or fstat() is performed on the file."
    As a consequence the fields contain the time stat() was called and
    not the freopen() before the sleep.
    Test Output

    /tset/ANSI.os/streamio/freopen/T.freopen 36 Failed

    st_ctime is not updated by close(), got 716717716 but expected 716717714 or 716717713
    st_mtime is not updated by close(), got 716717716 but expected 716717714 or 716717713
    *****************************************************************

    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