|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2366 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2366.
Report 2366 Actions
Problem Report Number 2366 Submitter's Classification Test Suite problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0281 Raised 2004-04-30 05:20 Updated 2004-05-05 20:42 Published 2004-05-05 20:42 Product Standard Commands and Utilities V4 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSC version 5.2.5 Test Identification POSIX.cmd/sort 5, 13 Specification Shell and Utilities Issue 6 Location in Spec See problem text. Problem Summary The tests fail on systems where sort -c does not write to stderr when
the input is disordered.Problem Text Problem described in TIN.X.0061 for SUSv2 still exists in SUSv3, an
equivalent TIN should be granted.
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 5 Failed
Test Information:
Assertion #5 (A): Verify sort -c exits with 1 and writes stderr
if not
sorted.
Standard error is empty
***********************************************************************
***********************************************************************
/tset/POSIX.cmd/sort/sort.ex 13 Failed
Test Information:
Assertion #13 (A): Verify sort -c -u exits with 1 and writes
stderr.
Standard error is empty
***********************************************************************
Review Information
Review Type TSMA Review Start Date 2004-04-30 05:20 Last Updated 2004-04-30 19:12 Completed 2004-04-30 19:12 Status Complete Review Recommendation Temporary Interpretation (TIN) Review Response From the problem text it appears that the submitter intended to request
a TIN, not a TSD, and probably selected TSD on the web form by mistake.
No change to the relevant text was made between SUSv2 and SUSv3, so this
SUSv2 grey area still exists in SUSv3 and an equivalent UNIX03 TIN
should be granted.
Review Type SA Review Start Date 2004-04-30 18:12 Last Updated 2004-05-01 01:35 Completed 2004-05-01 01:35 Status Complete Review Resolution Temporary Interpretation (TIN) Review Conclusion The TSMA believes that the test is correct relevant to its intention,
however the TSMA notes that their is known gray area in the
specification, and therefore this PR represents a Temporary
interpretation pending resolution of the ambiguity
Problem Reporting System Options:
- View Report 2366
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority