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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2604 Actions


    Problem Report Number 2604
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1352
    Raised 2015-04-17 03:44
    Updated 2015-04-17 17:40
    Published 2015-04-17 17:40
    Product Standard Commands and Utilities V5 (UNIX V7)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.3.8NW
    Test Identification /tset/POSIX.cmd/touch/touch.ex:59,61
    Specification Base Specifications Issue 7
    Location in Spec .
    Problem Summary Wrongly formed condition in /tset/POSIX.cmd/touch/touch.ex:59,61
    Problem Text From the trace

    + /usr/bin/touch -d 2015-01-02 13:17:60,789 -a example2.txt
    + 1> out.stdout 2> out.stderr
    + CT_EXIT_VALUE=0
    + [ 0 -ne 0 ]
    + SetResult PASS
    + + GetFileTimes -n -a example2.txt
    AfterTimeMod=1420233480:789000000
    + [ 1420233480 -eq 1420233480 ]
    + [ 0 -ne 0 ]
    + SetResult PASS
    + [ 789000000 -eq 987654000 ]
    + [ 1 -ne 0 ]
    + SetResult FAIL Command failed: '[ "789000000" -eq "987654000" ]'

    and the source code

    4928 $cmd -d "${ThisYear}-01-02 13:17:55,789Z" -a example2.txt >
    $CT_STDOUT 2>
    $CT_STDERR
    4929 CT_EXIT_VALUE=$?
    4930 if [ $CT_EXIT_VALUE -ne 0 ]; then
    4931 SetResult $TET_FAIL "Expected exit code = 0; Received
    $CT_EXIT_VALUE"
    4932 else
    4933 SetResult $TET_PASS
    4934 fi
    4935
    4936 # now check for appropriate date set
    4937 AfterTimeMod=`GetFileTimes -n -a example2.txt`
    4938 [ "${AfterTimeMod%:*}" -eq "$NumSecs" ]
    4939 if [ $? -ne 0 ]; then
    4940 SetResult $TET_FAIL "Command failed: '[ "${AfterTimeMod%:*}"
    -eq "$NumSecs"
    ]'"
    4941 else
    4942 SetResult $TET_PASS
    4943 fi
    4944
    4945 [ "${AfterTimeMod#*:}" -eq "$NanoSecs" ]
    4946 if [ $? -ne 0 ]; then
    4947 SetResult $TET_FAIL "Command failed: '[ "${AfterTimeMod#*:}"
    -eq "$NanoSecs"
    ]'"
    4948 else
    4949 SetResult $TET_PASS
    4950 fi

    it is wrongly expected that the NanoSecs should be 987654000 instead of
    789000000.
    Test Output
    /tset/POSIX.cmd/touch/touch.ex{59}
    Assertion #59 (A): Verify that 'touch -d YYYY-MM-DDThh:mm:SS.frac'
    translates into the equivalent seconds after Epoch.
    Trying with UTC
    Command failed: '[ "789000000" -eq "987654000" ]'
    Trying with PST
    Command failed: '[ "789000000" -eq "987654000" ]'

    /tset/POSIX.cmd/touch/touch.sh{61}
    Assertion #61 (A): Verify that 'touch -d YYYY-MM-DDThh:mm:SS.fracZ'
    translates into the equivalent seconds after Epoch.
    Command failed: '[ "789000000" -eq "987654000" ]'
    Command failed: '[ "789000000" -eq "987654000" ]'

    Review Information

    Review Type TSMA Review
    Start Date 2015-04-17 03:44
    Last Updated 2015-04-17 17:11
    Completed 2015-04-17 17:11
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite.

    Review Type SA Review
    Start Date 2015-04-18 01:11
    Last Updated 2015-04-17 17:39
    Completed 2015-04-17 17:39
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority