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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0553 Actions


    Problem Report Number 0553
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0157
    Raised 1970-01-01 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.0.2
    Test Identification XOPEN.cmd/ipcrm 1021
    Problem Summary PG4C.00121 This IR claims that ! is an invalid command.
    Problem Text
    This testcase fails because of problems with the cleanup test for each of
    the three tests: message queue, shared memory, and semphore. The cleanup
    calls ExecWithPriv ALLPRIV ipcrm with appropiate flags to rm the ipc information.
    Then ipcs is used to check that it is removed. However, the test is using
    ExecWithPriv ALLPRIV to execute the ipcs -q command. This is not necessary
    and is returning a erronous exit status causing the test to report failure.

    Code for the message queue cleanup looks like this:

    JrnlMsg CLEANUP: remove message queue
    ExecWithPriv ALLPRIV ipcrm -Q $msg_key
    if [ $? -ne 0 ]; then
    SetResult $TET_FAIL "Command failed: 'ipcrm -Q $msg_key'"
    else
    SetResult $TET_PASS
    fi

    JrnlMsg CLEANUP: message queue is gone
    ExecWithPriv ALLPRIV ! ipcs -q | grep $msg_key >/dev/null
    if [ $? -ne 0 ]; then
    SetResult $TET_FAIL "Command failed: '! ipcs -q | grep $msg_key >/dev/null'"
    else
    SetResult $TET_PASS
    fi


    Test Output
    ***********************************************************************
    /tset/XOPEN.cmd/ipcrm/ipcrm.ex 1 Failed


    Test Information:
    Assertion #1021 (A): Non-privileged non-owner user not allo
    <LC> wed to remove ipc
    PREP: message queue case
    SETUP: create privilaged message queue
    SETUP: message queue exists
    TEST: ipcrm -Q 0xa000000
    VERIFY: message queue is still there
    CLEANUP: remove message queue
    CLEANUP: message queue is gone
    Command failed: '! ipcs -q | grep 0xa000000 >/dev/null'
    PREP: shared memory case
    SETUP: create privilaged shared memory
    SETUP: shared memory exists
    TEST: ipcrm -M 0xa000000
    VERIFY: shared memory is still there
    CLEANUP: remove shared memory
    CLEANUP: shared memory is gone
    Command failed: '! ipcs -m | grep 0xa000000 >/dev/null'
    PREP: semaphore case
    SETUP: create privilaged semaphore
    SETUP: semaphore exists
    TEST: ipcrm -S 0xa000000
    VERIFY: semaphore is still there
    CLEANUP: remove semaphore
    CLEANUP: semaphore is gone
    Command failed: '! ipcs -s | grep 0xa000000 >/dev/null'

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

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    While the test issue is in the cleanup step of the test, we believe
    the syntax and usage is correct and is not a deficiency. The command

    ! ipcs -s | grep 0xa000000 >/dev/null

    is a valid command and should not report an error. The ExecWithPriv
    command is necessary, since some IUTs may classify ipcs as a privileged
    command.

    The ! character is a reserved word (Commands and Utilities,
    Section 2.9.2 Pipelines) and is valid shell syntax:

    If the reserved word "!" does not precede the pipeline, the
    exit status will be the exit status of the last command
    specified in the pipeline. Otherwise, the exit status will be
    the logical NOT of the exit status of the last command. That
    is, if the last commnd returns zero, the exit status will be
    1; if the last command returns greater than zero, the exit
    status will be zero.

    As a result, this is probably an issue with the IUT shell or IUT
    configuration.

    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