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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1008 Actions


    Problem Report Number 1008
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0523
    Raised 2001-05-07 08:00
    Updated 2003-03-13 08:00
    Published 2001-05-17 08:00
    Product Standard Commands and Utilities V3 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.1.2
    Test Identification POSIX.cmd/ed 562
    Problem Summary TSD4C.00241 The test may fail on systems where VSC_SFAX=Y, due to a syntax error when the parameter value is checked.
    Problem Text
    We believe there is a syntax error in the portion of the POSIX.cmd/ed
    script for tp562 (VSC 5.1.2), which causes our implementation to fail
    that test.

    The script includes the following code for creating the reference
    file ed_eout_562_3:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    if [ "$VSC_SXAF" = "Y" =o "$VSC_SXAF" = "y" ]
    then

    # Create output data file ed_eout_562_3
    cat << \VSC-EOF > ed_eout_562_3
    ^a
    MATCH
    ^a
    VSC-EOF

    else

    # Create output data file ed_eout_562_3
    cat << \VSC-EOF > ed_eout_562_3
    MATCH
    MATCH
    MATCH
    VSC-EOF

    fi
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Our implementation handles anchored RE subexpressions, so VSC_SFAX is
    defined as "Y".

    The first line, ''if [ "$VSC_SXAF" = "Y" =o "$VSC_SXAF" = "y" ]''
    includes a use of the = string comparison operator with a boolean
    value to its left and an "o" attached to its right, followed by
    another boolean value.

    On our implementation, a syntax error is reported, and execution
    proceeds with the else clause of the if-then-else construct.

    .: /vsc5/tet_tmp_dir/95331a/ed/ed_12.ex 20060:
    .: /vsc5/lib/xpg3sh/tcm.sh 496: tp562: [: expression syntax error

    This causes a test failure because the wrong reference file is used
    for comparison of results.

    Similar lines appear throughout the ed tests, but with
    "-o" in place of "=o".

    If we change the "=o" to "-o", our implementation passes
    ed tp562.

    Test Output
    400|1 562 1 09:49:01|IC Start
    200|1 1 09:49:01|TP Start
    520|1 1 95438 1 1|Assertion #562 (A): Test general assertion 146 using the v co
    520|1 1 95438 1 2| <LC> mmand
    520|1 1 95438 1 11|diff of "ed_out_562_3" and "ed_eout_562_3":
    520|1 1 95438 1 12|*** ed_out_562_3 Tue Apr 17 09:49:03 2001
    520|1 1 95438 1 13|--- ed_eout_562_3 Tue Apr 17 09:49:02 2001
    520|1 1 95438 1 14|***************
    520|1 1 95438 1 15|*** 1,3 ****
    520|1 1 95438 1 16|- ^a
    520|1 1 95438 1 17| MATCH
    520|1 1 95438 1 18|! ^a
    520|1 1 95438 1 19|--- 1,3 ----
    520|1 1 95438 1 20| MATCH
    520|1 1 95438 1 21|! MATCH
    520|1 1 95438 1 22|! MATCH
    520|1 1 95438 1 23|Command failed: 'cmp_show ed_out_562_3 ed_eout_562_3'
    220|1 1 1 09:49:10|FAIL
    410|1 562 1 09:49:10|IC End

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a fault in the test suite.

    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