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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1043 Actions


    Problem Report Number 1043
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0282
    Raised 2001-01-25 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V3 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.1.1
    Test Identification XOPEN.cmd/ipcs 1084
    Problem Summary PG4C.00134 The ipcs output shown in the test result does not match the XCU5 specification as amended by corrigendum U032.
    Problem Text

    This test may fail on implementations because the wrong OTIME value is
    being checked.

    This test is attempting to verify the proper contents of the OTIME
    field for the sem2_ID semaphore set (semaphore 35 in the test).
    However, due to an error in the code, the wrong value is being
    checked.

    The code sets the sem2_OTIME correctly the first time, but then
    improperly assigns the value to sem_OTIME rather than sem2_OTIME when
    it attempts to remove any leading zero from the output. The following
    code shows the error.

    sem_OTIME="no-entry"
    sem_CTIME="$(date '+%H:%M:[0-9][0-9]')"
    # remove a possible leading zero
    sem_CTIME=${sem_CTIME#0}
    ...
    sem2_OTIME="$(date '+%H:%M:[0-9][0-9]')"
    # remove a possible leading zero
    sem2_OTIME=${sem_OTIME#0}
    sem2_CTIME="$sem2_OTIME"

    Note that sem_CTIME in the previous semaphore set removes the leading
    zero properly. Even though sem2_CTIME is also set incorrectly,
    sem2_CTIME is never used, so it is of no consequence in the other tests.

    As a result of this error, "no-entry" is being checked rather than the
    proper time expression, and the test fails.

    Specifically, in the ipcs_startup() function, in the sem2_ID section,
    change the assignment from

    sem2_OTIME=${sem_OTIME#0}
    to
    sem2_OTIME=${sem2_OTIME#0}

    Test Output

    ***********************************************************************
    /tset/XOPEN.cmd/ipcs/ipcs.ex 1 Failed

    Test Information:
    Assertion #1084 (A): OTIME is %d:%2.2d:%2.2d
    TEST: all lines
    TEST: semaphore 35
    ERROR: Field 8 did not match regular expression:
    no-entry
    Detail line contained:
    s 35 0xbeefbef0 --ra--a-r-- vsctest users 2 4:44:12 4:44:
    <LC> 12
    Expected exit code = 0; Received 1

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

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    It is true that there is a fault in this test, however the test output
    also shows that the implementation is not compliant. The requirements
    for output of the ipcs command were amended in corrigendum U032 (March
    1998). On systems which correctly implement the amended specification
    this test fails differently. The failure is covered by PIN4C.00045.

    It is recommended that this request is refused.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority