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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0599 Actions


    Problem Report Number 0599
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0203
    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.5
    Test Identification XOPEN.cmd/sccs 1049,1051
    Problem Summary PG4C.00073 This was refused because it is a duplicate. Use TSD4C.00160 instead.
    Problem Text
    This was refused because it is a duplicate. Use TSD4C.00160 instead.

    This problem occurs very intermittently. The failure is due to a
    bug in the test script.

    The test is using the grep command to test a string in the file.
    In assertion #1051 (line 4808 in sccs.sh file) the following grep
    command will be executed

    test `grep -c "1.3" SCCS/p.sccs_in_4 ` -eq 1

    the typical entry of the SCCS/p.sccs_in_4 file is like this

    1.3 1.4 hsp 96/02/01 13:21:29
    1.1 1.1.1.1 hsp 96/02/01 13:21:30
    (Refer XOPEN CAE Specification, Commands and Utilities Issue 4,
    version 2, page 365)

    The above grep command will output the number of lines (-c
    option) containing the string "1.3" (checking for the
    existance of delta 1.3). The test is expecting the output of
    the grep command to be 1. Since there is no backslash ('\')
    before the dot operator (1.3), it searches for any string
    containing 1<any character>3 (Refer POSIX Std 1003.2 - 1992,
    part 2, shell and Utilities, Volume 1, section 2.8.3.1.3, page
    79). If you see the timestamp in SCCS/p.sccs_in_4 file, it
    has got 13:21:30. ^^^ So the grep command reports 2 instead
    of 1 and hence the test is UNRESOLVED.

    The correct syntax for checking the string "1.3" in the file is

    test `grep -c "1\.3" SCCS/p.sccs_in_4 ` -eq 1

    Also, in assertion #1049 (line 4190 in sccs.sh), the following grep
    command is executed

    test `grep -c "1.3" SCCS/p.sccs_in_4 ` -eq 1

    here also, the backslash (\) operator is missing before the dot(.)
    in the string "1.3".

    The file SCCS/p.sccs_in_4 is created by the get command. This get
    command will put the delta version and the system datestamp in the
    file. The failure of the assertions #1049, #1051 depends on the time
    at which the get command in line 4801 (in sccs.sh) of assertion #1051
    or the get command in line 4183 (in sccs.sh) of assertion #1049 is
    run. Since the system clock outputs the timings in the form hh:mm:ss,
    where hh is hours, mm is minutes, ss is seconds, if the system clock
    contains "1:3" string, then the output of the grep command will be
    different thus causing the tests to be UNRESOLVED. The following
    system times in the SCCS/p.sccs_in_4 file will cause the test to give
    an incorrect output.

    System time (read the entries as hours:minutes:seconds)
    ----------
    01:3[0-9]:ss where ss is the secs.
    ^^^
    11:3[0-9]:ss
    21:3[0-9]:ss
    hh:01:3[0-9] where hh is the hours
    hh:11:3[0-9]
    hh:21:3[0-9]
    hh:31:3[0-9]
    hh:41:3[0-9]
    hh:51:3[0-9]

    Note: In all the other places in the test where the grep command is
    used to search a string containing the dot operator, there is a
    backslash(\) operator before the dot(.) operator. Only at the
    above mentioned lines in these assertions, its missing.
    Test Output
    /tset/XOPEN.cmd/sccs/sccs.ex 1 Unresolved


    Test Information:
    Assertion #1049 (C): Test delget pseudo-utility options
    Command failed: 'test `grep -c "1.3" SCCS/p.sccs_in_4 ` -eq 1'

    Assertion #1051 (C): Test deledit pseudo-utility options
    Command failed: 'test `grep -c "1.3" SCCS/p.sccs_in_4 ` -eq 1'
    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The submitter is correct but a recent ruling regarding this issue
    exists. To avoid the confusion duplicate rulings regarding the same
    might cause we recommend this request be refused and the submitter
    use TSD4C.00160 instead.

    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