|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0816 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 0816.
Report 0816 Actions
Problem Report Number 0816 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0331 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-05-03 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/pax 181 Problem Summary TSD4C.00180 This test may fail because the behaviour of tr string1 string2 is unspecified when string2 is shorter than string1. Problem Text
This test may fail because the behaviour of "tr string1 string2"
is unspecified when string2 is shorter than string1.
The above test case fails because of change in behaviour of [:blank:]
character class for POSIX.2 compliance
In the following command in this test case
file test_file1.in |tr -s '[:blank:]' ' ' |cut -d' ' -f2 >test_file.exp 2>/dev/null || RC=$?
when 'tr' command is run [:blank:] character class will now expand into
array containing two elements i.e, tab and a space(earlier [:blank:] character
class contained only a space). Therefore in the above test case 'tr' will
replace any space in the piped input to NULL, as a result of which all
spaces between the fields in the input record will be replaced with null.
Hence the file test_file.exp will contain the first field in the input
record instead of the second field.
Similar is the case in the following command too
file test_dir/test_file1.in |tr -s '[:blank:]' ' ' |cut -d' ' -f2 >test_file.stdout 2>/dev/null || RC=$?
Hence even in this case test_file.stdout will contain the first field of the
input record instead of the second field.
Thereafter, when diff is done on file test_file.stdout and test_file.exp
diff test_file.exp test_file.stdout >/dev/null 2>/dev/null|| RC=$?
it fails.
In a way it can be said that there is a deficiency in the test case, because
as per POSIX.2 [:blank:] character class specified as string1 with 'tr' will
expand into array containing tab character at element 0 and space character
at the element 1. Therefore the corressponding string2 should have two element,
but in this case it has only one element i.e, one space character.Test Output
--------------- pax
***********************************************************************
/tset/POSIX.cmd/pax/pax.ex 1 Failed
Test Information:
Assertion #181 (A):
-Assertion 181- Actual output is different from expected.
***********************************************************************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.
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:
- View Report 0816
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority