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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1484 Actions


    Problem Report Number 1484
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0766
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-10-31 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.0.2
    Test Identification base/ioctl 100
    Problem Summary TSD4U.00047 The test may fail on implementations because the wrong file descriptor is being referenced.
    Problem Text
    The test may fail on implementations because the wrong file descriptor
    is being referenced.

    As shown in the following code, the test closes fildes1[1], then calls
    I_FDINSERT ioctl on fildes[0]. The I_FDINSERT ioctl should be called on
    fildes1[0] (NOT on fildes[0]). Note that "fildes" and "fildes1" are different.

    if(close(fildes1[1]) == -1) {
    uwerrno("close");
    return;
    }

    tet_infoline("TEST: ioctl returns -1");
    errno = 0;
    if((result = ioctl(fildes[0], I_FDINSERT, &fdins)) != -1) {
    sprintf(ebuf,"ERROR: ioctl returned %d", result);
    tet_infoline(ebuf);
    tet_result(TET_FAIL);
    return;
    }


    Test Output

    /tset/CAPIbase/fioctl/fioctl100

    TEST PURPOSE #100
    ENXIO in errno and return -1 on a call to int
    ioctl(int fildes, I_FDINSERT, struct strfdinsert *arg)
    when fildes refers to a STREAMS device and a hangup is
    received on the STREAM referenced by the fd member of
    the structure pointed to by arg.
    PREP: Create a pipe
    PREP: Determine if pipe is a stream
    PREP: Create a pipe
    PREP: Determine if pipe is a stream
    PREP: Setup strfdinsert structure
    PREP: Close read end to issue hangup
    TEST: ioctl returns -1
    ERROR: ioctl returned 0
    100 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