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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1535 Actions


    Problem Report Number 1535
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0817
    Raised 2000-01-03 08:00
    Updated 2003-03-13 08:00
    Published 2000-01-12 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 base/readv 39
    Problem Summary TSD4U.00278 putpmsg() on pseudo-terminal returns -1 with errno EBADF
    Problem Text
    The common code to create the STREAMS-based pseudo ttys in
    sreflect.c opens the master tty for read only (O_RDONLY/filedes[0])
    and the slave side for write only (O_WRONLY/filedes[1]).

    This test attempts a write operation from the master side, where
    only read operations are permitted and the operation fails, resulting
    in test failure.

    The error returned by putpmsg call that fails is EBADF, which according
    to CAE specifications for putpmsg, is the error that will be returned
    if "fildes is not a valid file descriptor open for writing", which is
    the case here.
    Test Output
    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 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
    PREP: Sleep for a few seconds
    TEST: readv operates normally until all data is read
    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
    ERROR: putpmsg failed, errno = 9(EBADF - Bad file number)
    39 UNRESOLVED

    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