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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1453 Actions


    Problem Report Number 1453
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0735
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-11-28 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.0
    Test Identification base/fseek 2, 3
    Problem Summary TSD4U.00080 This test may fail on implementations that check for unseekable devices
    Problem Text
    This test may fail on implementations that check for unseekable devices
    and return an EPIPE without writing the associated buffer.

    These tests assume that a call to fseek() using a file pointer
    to a partly filled buffered i/o stream will force a write of the
    buffered data then raise a SIGPIPE signal. This is true if the
    arguments to fseek() are valid. But the tests listed are trying
    to seek on unseekable devices (pipes and FIFOs respectively).

    Our implementation checks the arguments to fseek(), notices that
    the devices do not support seeking and returns EPIPE without ever
    attempting the seek or the associated write.

    We can find nothing in the spec that mandates the write in this
    case. We believe it is optional and the test should only require
    the behavior tested if the write occurs.
    Test Output
    SPEC1170TESTSUITE CASE 2
    EPIPE in errno, return -1, and generate a SIGPIPE
    signal on a call to int fseek(FILE *stream, long
    offset, int whence) when the call causes a call t
    write() which fails because an attempt is made to
    write to a PIPE that only has one end open.
    PREP: Catch SIGPIPE signal
    PREP: Create pipe
    PREP: Associate stream with write end of pipe
    PREP: Enable full stream buffering
    PREP: Write a buffer and a half worth of data
    PREP: Close read end of pipe
    TEST: fseek generates SIGPIPE
    ERROR: SIGPIPE not received
    FAIL

    SPEC1170TESTSUITE CASE 3
    EPIPE in errno, return -1, and generate a SIGPIPE
    signal on a call to int fseek(FILE *stream, long
    offset, int whence) when the call causes a call t
    write() which fails because an attempt is made to
    write to a FIFO that only has one end open.
    PREP: Catch SIGPIPE signal
    PREP: Create fifo
    PREP: Open read end of fifo
    PREP: Associate stream with write end of pipe
    PREP: Enable full stream buffering
    PREP: Write a buffer and a half worth of data
    PREP: Close read end of fifo
    TEST: fseek generates SIGPIPE
    ERROR: SIGPIPE not received
    FAIL

    Review 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:

     

    Back   


Contact the Certification Authority