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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1324 Actions


    Problem Report Number 1324
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0606
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-03-12 08:00
    Product Standard Sockets (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification CAPIsockets/setsockopt 31
    Problem Summary TSD4U.00211 This test may fail on all implementations.
    Problem Text

    The code for the testcase looks like this:

    socklen_t val_size;
    .
    .
    .

    val.tv_sec = -1;
    val.tv_usec = -1;
    s2 = getsockopt(s, SOL_SOCKET, SO_SNDTIMEO, &val , &val_size);
    .
    .
    .
    val_size = sizeof(val);
    s2 = getsockopt(s, SOL_SOCKET, SO_SNDTIMEO, &val, &val_size);

    notice that val_size is not initialized until after the first getsockopt()
    call. The XPG5 XNS spec on page 144 states the following:

    "Description .... If the size of option value is greater than option_len,
    the value stored in the object pointed to by the option_value
    argument will be silently truncated."

    This is causing the above failure on our implementation, the sizeof() statement
    needs to be moved above the first getsockopt() call.
    Test Output
    TEST CASE: setsockopt

    TEST PURPOSE #31
    If the implementation supports a communications domain
    and a socket type and allows this option to be set:
    A successful call to int setsockopt(int socket,
    SOL_SOCKET, SO_SNDTIMEO, const void *option_value,
    socklen_t option_len) shall set the timeout value
    specifying the amount of time that an output function
    blocks because flow control prevents data from being
    sent for the socket socket.
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 9.3.155.183, port = 2561
    PREP: Server: create socket
    PREP: Server: bind address 9.3.155.183, port 2561 to socket
    PREP: Server: listen on socket
    PREP: Server: notify client server is ready
    PREP: Server: accept connection
    INFO: Server received signal 15
    INFO: Server terminated
    PREP: Wait for server to be ready
    PREP: Create a socket
    PREP: Connect socket to address 9.3.155.183, port 2561
    TEST: Call setsockopt to set value
    TEST: Call getsockopt
    ERROR: Value of tv_sec incorrect, expected 2, received -1
    CLEANUP: Send SIGTERM to server
    31 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