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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1547 Actions


    Problem Report Number 1547
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0829
    Raised 2000-08-27 08:00
    Updated 2003-03-13 08:00
    Published 2000-09-18 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.4
    Test Identification CAPIbase/read 17
    Problem Summary TSD4U.00290 These tests assume that closing the write-side of the stream reflector causes a hangup on the read-side. This is true for a pipe but fails when the tests are run using pseudo-terminals.
    Problem Text
    This interpretation request if for the following assertions:
    CAPIbase/fread 17
    CAPIbase/freadv 39
    CAPIbase/freadv 40

    These failures occur because the tests expect the close on fildes[1](which
    is the slave pty) to generate a hangup. But the XSH5 page 135
    states the following:

    "If fildes refers to the slave side of a STREAMS-based psuedo-terminal,
    a zero length message may be sent to the master."

    This does not state a M_HANGUP message is required to be sent up the stream.
    Test Output
    TEST CASE: read

    TEST PURPOSE #17
    A call to ssize_t read(int fildes, void *buf, size_t
    nbyte) when fildes refers to a STREAMS file and a
    hangup occurred on the STREAM and the STREAM head read
    queue is empty shall return 0.
    PREP: Open master pseudo tty
    PREP: Determine if pseudo tty is a stream
    PREP: Open slave side of pseudo tty
    PREP: Ignore SIGPOLL, SIGHUP, and SIGPIPE signals
    PREP: Set O_NONBLOCK on read end of STREAM
    PREP: Generate hangup
    TEST: Read returns 0
    ERROR: read returned -1
    17 FAIL

    TEST CASE: readv

    TEST PURPOSE #39
    A call to ssize_t readv(int fildes, const struct iovec
    *iov, int iovcnt) when fildes refers to a STREAMS file
    and a hangup occurs on the STREAM shall continue to
    operate normally until the STREAM head read queue is
    empty.
    PREP: Create a pipe
    PREP: Determine if pipe is a stream
    INFO: Pipes are not STREAMS based on this implementation.
    PREP: Open master pseudo tty
    PREP: Determine if pseudo tty is a stream
    PREP: Open slave side of pseudo tty
    PREP: Ignore SIGPOLL, SIGHUP, and SIGPIPE signals
    PREP: Set O_NONBLOCK on read end of STREAM
    PREP: Set O_NONBLOCK on write end of STREAM
    PREP: Put some messages on the STREAM
    PREP: Hangup write end of STREAM
    PREP: Sleep for a few seconds
    TEST: readv operates normally until all data is read
    ERROR: read failed, errno = 9(EBADF - Bad file number)
    39 FAIL

    TEST PURPOSE #40
    A call to ssize_t readv(int fildes, const struct iovec
    *iov, int iovcnt) when fildes refers to a STREAMS
    file, a hangup occurred on the STREAM, and the STREAM
    head read queue is empty shall return 0.
    PREP: Open master pseudo tty
    PREP: Determine if pseudo tty is a stream
    PREP: Open slave side of pseudo tty
    PREP: Ignore SIGPOLL, SIGHUP, and SIGPIPE signals
    PREP: Set O_NONBLOCK on read end of STREAM
    PREP: Generate hangup
    TEST: readv returns 0
    ERROR: readv returned -1
    40 FAIL

    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 fault in the test suite.

    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