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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2281 Actions


    Problem Report Number 2281
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1165
    Raised 2003-09-05 02:38
    Updated 2003-09-05 17:51
    Published 2003-09-05 17:51
    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/connect 14
    Problem Summary /tset/CAPI.os/sockets/connect/T.connect{14}
    Problem Text According to test14C() of connect.c(Rev30.3),
    return value of connect() in line 5270 and 5396
    will be set to s2, the value expects -1,
    however, the s2 will be replaced by CLEAR_ALARM(avs_signal)
    after connect(). Please double check
    avs_signal() is setting value to s2 as 0
    in ~/SRC/common/capi_com/signals.c.

    As a results, even connect() returned -1 correctly, and set -1 to s2,
    s2 will be replaced by CLEAR_ALARM as 0, that is why
    this failed and display as error "... returned 0".
    I verified return value of connect() is returned -1 as expected.

    I recommend you change source code is
    * change valuable s2 that return value of connect(), to s3 or else.
    * put CLEAR_ALARM after checking s2 value is not -1.
    Test Output ****************************************************************************

    /tset/CAPI.os/sockets/connect/T.connect 14 Failed

    Test Description:
    Base Conditional Deviance
    If the implementation supports a communications domain and a
    connection-oriented socket type:
    EISCONN in errno and return -1 on a call to int connect(int socket,
    const struct sockaddr *address, socklen_t address_len) when the socket
    is connection-oriented and is already connected.

    Test Information:
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 133.164.101.121, port = 1381
    PREP: Create socket
    PREP: Wait for child to be ready
    TEST: Call connect
    PREP: Wait for child to be ready
    TEST: Call connect on connected socket
    TEST: Return value and errno
    ERROR: connect call succeeded unexpectedly, returned 0
    PREP: Child: create socket
    PREP: Child: bind to socket
    PREP: Child: listen on socket with backlog of 2
    PREP: Child: tell parent ready
    PREP: Child: accept
    PREP: Child: tell parent ready
    PREP: Child: wait for parent to complete test

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

    Review Information

    Review Type TSMA Review
    Start Date 2003-09-05 02:38
    Last Updated 2003-09-05 17:44
    Completed 2003-09-05 17:44
    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:44
    Last Updated 2003-09-05 17:51
    Completed 2003-09-05 17:51
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority