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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0817 Actions


    Problem Report Number 0817
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0332
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-05-01 08:00
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.5
    Test Identification POSIX.cmd/ls 61
    Problem Summary TSD4C.00179 This test may fail on implementations because of differences between the grep time and the touch time.
    Problem Text
    This test may fail on implementations because of differences between
    the grep time and the touch time.

    This test case passed most of time, but because the implementation in the test
    code, it caused the above problem.

    tp61() {
    $TST_TRACE
    CT_STDOUT=out.stdout
    CT_STDERR=out.stderr
    cmd=`OpenTP ls 61 A "Verify the format of < date and time> if LC_TIME is set
    to POSIX Locale and the file has been modified within last 6 months."`


    grep_string=`date "+%b %e %H:%M" | tr -d '\n'`
    if [ $? -ne 0 ]; then
    SetResult $TET_UNRESOLVED "Command failed: 'grep_string=\`date \"+%b %e
    %H:%M\" | tr -d '\n'\`'"
    return
    fi

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

    When test used date to get "grep_string", the time was 18:32:59, so when test
    did "touch", the time changed to 18:33:00, which is different from "grep_string"
    In this case, it will be nice to do date to get another "grep_string" after
    "touch", if the output can match either of those two, this case should
    considered to be PASS.

    Test Output
    400|196 61 1 18:32:59|IC Start
    200|196 1 18:32:59|TP Start
    520|196 1 23982 1 1|Assertion #61 (A): Verify the format of < date and time> if
    520|196 1 23982 1 2| <LC> LC_TIME is set to POSIX Locale and the file has bee
    520|196 1 23982 1 3| <LC> n modified within last 6 months.
    520|196 1 23982 1 11|"Apr 19 18:32" wasn't found in standard output
    220|196 1 1 18:33:00|FAIL
    410|196 61 1 18:33:00|IC End

    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.

    Note the TP start time in the journal output is 18:32:59,
    and the finish time is 18:33:00.

    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