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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1323 Actions


    Problem Report Number 1323
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0605
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-03-19 08:00
    Product Standard Sockets (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification CAPIsockets/send 31
    Problem Summary TSD4U.00212 This test may fail on slow implementations.
    Problem Text
    These tests fail in the same way; the tests are supposed to fill up
    the send socket and then test that send() blocks. Depending on
    the timing for the actual transmittal of the messages from the send
    side to the receive side, it can possible for the "for" loop not to
    actually fill up the sending side of the socket. Thus on our implementation
    the next fill that is expected to block, actually suceeds, and returns
    the numbers sent as required by the XPG5 XNS specification.

    Also from fsend1.c

    t1 = (double)((double)tp1.tv_sec + ((double)tp1.tv_usec/1000));
    t2 = (double)((double)tp2.tv_sec + ((double)tp2.tv_usec/1000));
    t = (double)((double)5 + ((double)123/1000000));

    tv_usec should be divided by 1000000 in both t1 and t2 lines as in the
    t = line. lines 2904 and 2905 also needed changed.

    fsendmsg1.c and fsendto1.c contain similiar problems.
    Test Output
    TEST CASE: send

    TEST PURPOSE #27
    If the implementation supports a communications domain
    and a socket type and allows the option to be set:
    The SO_SNDTIMEO option shall define the amount of time
    to block because flow control prevents data from
    being sent for a call to ssize_t send(int socket,
    const void *buffer, size_t length, int flags).
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 9.3.155.183, port = 2341
    PREP: Server: create socket
    PREP: Server: bind address 9.3.155.183, port 2341 to socket
    PREP: Server: listen on socket
    PREP: Server: notify client server is ready
    PREP: Server: accept connection
    INFO: Server: accepted connection from address 9.3.155.183, port 32917
    PREP: sleep_server: wait for parent to complete test
    INFO: sleep_server: parent completed test
    CLEANUP: sleep_server: flush data
    INFO: Server terminated
    PREP: Wait for server to be ready
    PREP: Create a socket
    PREP: Connect socket to address 9.3.155.183, port 2341
    PREP: Set O_NONBLOCK
    PREP: Fill up the server
    PREP: Clear O_NONBLOCK on socket
    PREP: Call setsockopt to set timeout value
    TEST: Call to send times out as set
    ERROR: Call to send did not timeout as expected
    Expected -1 Received: 512
    CLEANUP: Have server flush data
    27 FAIL

    TEST CASE: sendmsg

    TEST PURPOSE #46
    If the implementation supports a communications domain
    and a socket type and allows the option to be set:
    The SO_SNDTIMEO option shall define the amount of time
    to block because flow control prevents data from
    being sent for a call to ssize_t sendmsg(int socket,
    const struct msghdr *message, int flags).
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 9.3.155.183, port = 4393
    PREP: Server: create socket
    PREP: Server: bind address 9.3.155.183, port 4393 to socket
    PREP: Server: listen on socket
    PREP: Server: notify client server is ready
    PREP: Server: accept connection
    INFO: Server: accepted connection from address 9.3.155.183, port 32926
    PREP: sleep_server: wait for parent to complete test
    INFO: sleep_server: parent completed test
    CLEANUP: sleep_server: flush data
    INFO: Server terminated
    PREP: Wait for server to be ready
    PREP: Create a socket
    PREP: Connect socket to address 9.3.155.183, port 4393
    PREP: Set O_NONBLOCK
    PREP: Fill up the server
    PREP: Clear O_NONBLOCK on socket
    PREP: Call setsockopt to set timeout value
    TEST: Call to send times out as set
    ERROR: Call to send did not timeout as expected
    Expected -1 12 Received: 53296
    CLEANUP: Have server flush data
    46 FAIL

    TEST CASE: sendto

    TEST PURPOSE #44
    If the implementation supports a communications domain
    and a socket type and allows the option to be set:
    The SO_SNDTIMEO option shall define the amount of time
    to block because flow control prevents data from
    being sent for a call to ssize_t sendto(int socket,
    const void *message, size_t length, int flags, const
    struct sockaddr *dest_addr, size_t dest_len).
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 9.3.155.183, port = 4473
    PREP: Server: create socket
    PREP: Server: bind address 9.3.155.183, port 4473 to socket
    PREP: Server: listen on socket
    PREP: Server: notify client server is ready
    PREP: Server: accept connection
    INFO: Server: accepted connection from address 9.3.155.183, port 32936
    PREP: sleep_server: wait for parent to complete test
    INFO: sleep_server: parent completed test
    CLEANUP: sleep_server: flush data
    INFO: Server terminated
    PREP: Wait for server to be ready
    PREP: Create a socket
    PREP: Connect socket to address 9.3.155.183, port 4473
    PREP: Set O_NONBLOCK
    PREP: Fill up the server
    PREP: Clear O_NONBLOCK on socket
    PREP: Call setsockopt to set timeout value
    TEST: Call to send times out as set
    ERROR: Call to send did not timeout as expected
    Expected -1 Received: 512
    CLEANUP: Have server flush data
    44 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