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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0551 Actions


    Problem Report Number 0551
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0155
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.6
    Test Identification POSIX.cmd/ls 63
    Problem Summary PG4C.00123 This request was refused because it duplicates a previous request.
    Problem Text
    We believe that there is a test error.

    In the 'ls' Assertion 63 test code which follows the
    'touch -m -t 199901010000.00 example.c' works fine if executed
    with the 'ls -l' command in years prior to 1999. However, if this
    test is executed in the year 1999 this test will fail.

    In the year 1999 the touch'ed file 'example.c' produces 'ls -l'
    output below which causes this test to fail.

    -rw-rw-rw- 1 vsc0 vscg0 0 Jan 1 00:00 example.c

    However, in the years 1998 and prior if this test is executed, then
    'ls -l' did produce an output below which causes this test to pass.

    -rw-rw-rw- 1 vsc0 vscg0 0 Jan 1 1999 example.c


    ###########################################################################
    #
    # Assertion: 63
    # Standard: POSIX
    # Type: A
    # See Assertion 63 in section 4.39.6.1 of standard P1003.3.2/D8.
    #
    # Dependencies: grep, rm, touch, sh
    #
    ###########################################################################

    ###########################################################################
    #
    # Strategy:
    #
    # Verify that if LC_TIME is set to POSIX Locale and the file modification
    # time is in the future, then the format of < date and time > is
    # the same as 'date "+%b %e %Y"'.
    #
    ###########################################################################

    tp63() {
    $TST_TRACE
    CT_STDOUT=out.stdout
    CT_STDERR=out.stderr
    cmd=`OpenTP ls 63 A "Verify the < date and time > format if LC_TIME is set to POSIX Locale and the file modification time is in the future."`


    touch -m -t 199901010000.00 example.c
    if [ $? -ne 0 ]; then
    SetResult $TET_UNRESOLVED "Command failed: 'touch -m -t 199901010000.00
    example.c'"
    return
    fi

    $cmd -l example.c > $CT_STDOUT 2> $CT_STDERR
    CT_EXIT_VALUE=$?
    if [ $CT_EXIT_VALUE -ne 0 ]; then
    SetResult $TET_FAIL "Expected exit code = 0; Received $CT_EXIT_VALUE"
    else
    SetResult $TET_PASS
    fi

    grep -e "Jan[ ][ ]*1[ ][ ]*1999" $CT_STDOUT > /dev/null
    if [ ! $? -eq 0 ]; then
    SetResult $TET_FAIL "\"Jan[ ][ ]*1[ ][ ]*1999\" wasn't
    found in standard output"
    else
    SetResult $TET_PASS
    fi

    if [ -z "$VSC_DEBUG" ] ; then
    rm -f $CT_STDOUT $CT_STDERR
    fi
    CloseTP
    } # End of tp63

    Test Output
    10|1 /tset/POSIX.cmd/ls/ls.ex 18:37:47|TC Start, scenario ref 3-1, ICs {63}
    15|1 1.10 1|TCM Start
    400|1 63 1 18:37:52|IC Start
    200|1 1 18:37:52|TP Start
    520|1 1 968372 1 1|Assertion #63 (A): Verify the < date and time > format if LC
    520|1 1 968372 1 2| <LC> _TIME is set to POSIX Locale and the file modificatio
    520|1 1 968372 1 3| <LC> n time is in the future.
    520|1 1 968372 1 11|"Jan[ ][ ]*1[ ][ ]*1999" wasn't found in standard output
    220|1 1 1 18:37:53|FAIL

    Review Information

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

    It is a duplicate of TSD4C.00222.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused. Please reference TSD4C.00222 which
    was processed just before this request was received.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority