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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1034 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 1034 and all reviews you are authorized to see.


Report 1034 Actions


    Problem Report Number 1034
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0061
    Raised 2001-06-06 08:00
    Updated 2003-03-13 08:00
    Published 2001-07-19 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/sort 5, 13
    Specification Commands and Utilities Issue 5
    Location in Spec See Problem Text
    Problem Summary TIN4C.00050 The tests fail on systems where sort -c does not write to stderr when the input is disordered.
    Problem Text
    This is a resubmit of PG4C.00131.

    According to the Commands and Utilities, Issue 5:

    "-c Check that the single input file is ordered as specified by the
    arguments and the collating sequence of the current locale. No
    output is produced; only the exit code is affected."

    The test code:

    CT_STDOUT=out.stdout
    CT_STDERR=out.stderr
    cmd=`OpenTP sort 5 A "Verify sort -c exits with 1 and writes stderr if not sorted."`

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

    if [ -s $CT_STDERR ]; then
    SetResult $TET_PASS
    else
    SetResult $TET_FAIL "Standard error is empty"
    fi

    The failure occurs because $CT_STDERR is not of size > 0. However,
    according to the standard, it should not be size > 0 because no
    output would have been produced.

    Since Base Working Group resolution bwg98-002 has been changed, it is
    not reasonable for the test to expect output to stderr with the -c
    option.
    Test Output
    ***********************************************************************
    /tset/POSIX.cmd/sort/sort.ex 1 Failed

    Test Information:
    Assertion #5 (A): Verify sort -c exits with 1 and writes stde
    <LC> rr if not sorted.
    Standard error is empty

    ***********************************************************************

    ***********************************************************************
    /tset/POSIX.cmd/sort/sort.ex 1 Failed

    Test Information:
    Assertion #13 (A): Verify sort -c -u exits with 1 and writes
    <LC> stderr.
    Standard error is empty

    ***********************************************************************


    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The behaviour of this system is allowed by the revised bwg98-002
    resolution, and so a waiver should be granted.
    Since bwg98-002 mentions the need for an interpretation request to
    be filed (by which I assume it means a POSIX.2 interpretation),
    a Temporary Interpretation is recommended.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Temporary Interpretation (TIN)
    Review Conclusion
    A Temporary Interpretation is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority