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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2282 Actions


    Problem Report Number 2282
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1166
    Raised 2003-09-05 02:40
    Updated 2003-09-06 14:07
    Published 2003-09-06 14:07
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.2.3
    Test Identification CAPI.os/ioctl 22
    Problem Summary /tset/CAPI.os/streams/ioctl/T.ioctl{22}
    Problem Text If test system is multiprocessor, ioctl{22} seems to be failed.
    I tried to reduce processor and re-run the test on one-processor system,
    the test has been passed. According to test22A() of ioctl22.c(Rev30.3),
    it checks stream message data in line 347 using getmsg()
    from 1 to 4 messages in for loop.
    However, it seems it will need some times to get messages from streams,
    if it trys to read messages from streams continuslly, then some data will
    be missed. I verified that 4 messages are put in streams in line 309
    using putpmsg() correctly, so I think that this is timing issue.
    I noticed that it better had sleep() in for-loop of getmsg()
    as well as for-loop of putpmsg() does in line 300 to 314.
    Test Output ****************************************************************************
    /tset/CAPI.os/streams/ioctl/T.ioctl 22 Failed

    Test Description:
    Base Required Conformance
    For UNIX03 mode:
    If the implementation supports the STREAM option group:
    A successful call to int ioctl(int fildes, I_FLUSHBAND,
    (struct bandinfo *)arg) when fildes refers to a STREAMS
    device
    and the bi_flags member of the structure pointed to by
    arg is
    FLUSHRW shall flush messages in the band specified by the
    bi_pri member of the structure from the STREAM's read and
    write queues and return a value other than -1.
    For other test modes:
    A successful call to int ioctl(int fildes, I_FLUSHBAND,
    (struct bandinfo *)arg) when fildes refers to a STREAMS
    device
    and the bi_flags member of the structure pointed to by
    arg is
    FLUSHRW shall flush messages in the band specified by the
    bi_pri member of the structure from the STREAM's read and
    write queues and return a value other than -1.

    Test Information:
    PREP: Set O_NONBLOCK on both ends of the STREAM
    PREP: Put a message on band 1 of one end
    TEST: Flush of band 0 on the other end returns other than -1
    TEST: Band 1 read queue still contains the message
    PREP: Put a message on band 1 on one end
    TEST: Flush of band 1 on the other end returns other than -1
    TEST: Flush of band 1 flushed the message
    PREP: Fill band 1 write queue of one end
    INFO: 4 messages were written to fill the STREAM
    TEST: Flush of band 0 on that end returns other than -1
    TEST: no band 1 messages were flushed
    ERROR: Data on band 1 was flushed
    Expected to read 3 more messages
    ERROR: Data on band 1 was flushed
    Expected to read 1 more messages
    PREP: Fill band 1 write queue of one end
    INFO: 2 messages were written to fill the STREAM
    TEST: Flush of band 1 returns other than -1
    TEST: Flush of band 1 flushed write queue

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

    Review Information

    Review Type TSMA Review
    Start Date 2003-09-05 02:40
    Last Updated 2003-09-05 17:47
    Completed 2003-09-05 17:47
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite

    Review Type SA Review
    Start Date 2003-09-05 16:47
    Last Updated 2003-09-06 02:12
    Completed 2003-09-06 02:12
    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