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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1392 Actions


    Problem Report Number 1392
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0674
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-08-16 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.0
    Test Identification CAPIbase/fgetmsg 37
    Problem Summary TSD4U.00143 This test may fail on all implementations due to a typo.
    Problem Text
    Line 92 of the source code ($HOME/tset/CAPIbase/fgetmsg/fgetmsg37.c)
    for this assertion contains the following typo:
    if((fildes = open(test_file, O_RDWR|O_CREAT), S_IRWXU) == -1) {

    The closing parenthesis for the open() call should come after S_IRWXU
    and not after O_CREAT. I.e., this line should read:
    if((fildes = open(test_file, O_RDWR|O_CREAT, S_IRWXU)) == -1) {

    This bug causes test_file to be created and opened with NO permission
    bits set on, so the file is not readable. The EBADF errno results
    because according to the standard:
    EBADF: The filedes argument is not a valid file descriptor open
    for reading.
    Test Output
    TEST PURPOSE #37
    ENOSTR in errno and return -1 on a call to int
    getmsg(int fildes, struct strbuf *ctlptr, struct
    strbuf *dataptr, int *flagsp) when a STREAM is not
    associated with fildes.
    PREP: Open a regular file
    TEST: Call to getmsg with a non-STREAMS file descriptor returns -1
    TEST: ENOSTR in errno
    ERROR: getmsg set errno to 113(EBADF - Bad file number)
    37 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