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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1540 Actions


    Problem Report Number 1540
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0822
    Raised 2000-08-11 08:00
    Updated 2003-03-13 08:00
    Published 2000-08-21 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.1.1
    Test Identification CAPI.os/ioprim/read 17
    Problem Summary TSD4U.00283 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:
    tset/CAPI.os/ioprim/read/T.read 17
    tset/CAPI.os/ioprim/readv/T.readv 39
    tset/CAPI.os/ioprim/readv/T.readv 40


    These failures also exists in the same tests in VSU 5.0.4.

    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
    ************************************************************************
    /tset/CAPI.os/ioprim/read/T.read 17 Failed

    Test Description:
    Base Required Conformance
    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.

    Test Information:
    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

    ************************************************************************

    ************************************************************************
    /tset/CAPI.os/ioprim/readv/T.readv 39 Failed

    Test Description:
    Base Required Conformance
    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.

    Test Information:
    PREP: Create a pipe
    PREP: Determine if pipe is a stream
    INFO: Pipes are not STREAMS based on this implementation.
    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
    ERROR: Test took longer than 600 seconds: presuming
    function is hung and terminating test

    ************************************************************************

    ************************************************************************
    /tset/CAPI.os/ioprim/readv/T.readv 40 Failed

    Test Description:
    Base Required Conformance
    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.
    Test Information:
    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

    ************************************************************************

    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