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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2431 Actions


    Problem Report Number 2431
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1259
    Raised 2004-10-29 11:01
    Updated 2004-10-29 21:19
    Published 2004-10-29 21:19
    Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.2.5
    Test Identification CAPI.os/files/fstat 3
    Specification Base Definitions Issue 6
    Problem Summary Tests uses SOCK_SEQPACKET as the address family when testing AF_UNIX.
    Problem Text The problem with this test suite is that it testing the wrong
    address family.

    CAPI.os/files/fstat/fstat3.c (line 168):

    s = socket(imp_socks[index].type, imp_socks[index].type, 0);

    The imp_socks array looks like:

    struct {
    int imp_has;
    int family;
    int type;
    int stream;
    int connectfull;
    char *tname;
    } imp_socks[NVSUSOCK] = {
    0, AF_INET, SOCK_STREAM, 1, 1, "AF_INET SOCK_STREAM",
    0, AF_UNIX, SOCK_STREAM, 1, 1, "AF_UNIX SOCK_STREAM",
    0, AF_INET, SOCK_SEQPACKET, 0, 1, "AF_INET SOCK_SEQPACKET",
    0, AF_UNIX, SOCK_SEQPACKET, 0, 1, "AF_UNIX SOCK_SEQPACKET",
    0, AF_INET, SOCK_DGRAM, 0, 0, "AF_INET SOCK_DGRAM",
    0, AF_UNIX, SOCK_DGRAM, 0, 0, "AF_UNIX SOCK_DGRAM"
    };

    So, the test is using the socket type (SOCK_SEQPACKET) as the address
    family instead of AF_UNIX like it should be.
    Test Output
    ****************************************************************************************************************
    /tset/CAPI.os/files/fstat/T.fstat 3 Unresolved

    Test Description:
    Base Conditional Conformance
    If the implementation supports a communications domain and a socket
    type:
    A call to int fstat(int fildes, struct stat *buf) when fildes
    references a socket shall set the st_mode member of the stat
    structure
    pointed to by buf to S_IFSOCK.

    Test Information:
    TEST: AF_INET SOCK_STREAM
    PREP: Create socket
    PREP: Stat socket
    TEST: S_IFSOCK set in st_mode
    CLEANUP: Close socket
    TEST: AF_UNIX SOCK_STREAM
    PREP: Create socket
    PREP: Stat socket
    TEST: S_IFSOCK set in st_mode
    CLEANUP: Close socket
    TEST: AF_UNIX SOCK_SEQPACKET
    PREP: Create socket
    ERROR: socket failed, errno = 124 (EAFNOSUPPORT - Address family
    not supported)


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

    Review Information

    Review Type TSMA Review
    Start Date 2004-10-29 11:01
    Last Updated 2004-10-29 20:25
    Completed 2004-10-29 20:25
    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 2004-10-29 19:25
    Last Updated 2004-10-29 21:19
    Completed 2004-10-29 21:19
    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