|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0172 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 0172.
Report 0172 Actions
Problem Report Number 0172 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0172 Raised 1994-07-01 08:00 Updated 2003-03-13 08:00 Published 1994-07-07 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.2 Test Identification XPG4.os/procenv/confstr 1,2,3,4 Problem Summary TSD4.172 .P The confstr() test cases 1,2,3 and 4 assume that _CS_PATH has a configuration defined value, however, according to the XSH4 confstr() and <unistd.h> definitions, this is only guaranteed if POSIX.2 ... Problem Text
.P
The confstr() test cases 1,2,3 and 4 assume that _CS_PATH has a configuration
defined value, however, according to the XSH4 confstr() and <unistd.h>
definitions, this is only guaranteed if POSIX.2 is supported.
The relevant references follow.
.sp
confstr(), Page 72 - Systems Interfaces and Headers, Issue 4
"If name does not have a configuration-defined value, confstr() returns
zero and leaves errno unchanged."
<unistd.h>, Page 616 - Systems Interfaces and Headers, Issue 4
The following symbolic constant is defined for the confstr() function:
"_CS_PATH If the ISO POSIX-2 DIS is supported, this is the value for the
PATH environment variable that finds all standard utilities.
Otherwise the meaning of this value is unspecified."
.P
Because the current implementation does not yet support POSIX.2, the meaning
of the value _CS_PATH is unspecified and has no relevancy in this case.
This is acceptable behavior according to XSH4 and as described in the
confstr() definition, and under this condition, the implementation should
return 0 and not set errno, which our implementation does. The tests do not
allow for this option. The test cases are all preceeded by the same common
test preparation routine test_prepare(). Within test_prepare(), The first
function call is to the function tb_confstr() which sets errno to zero and
the initial call to the system function confstr() which in this implemenation
returns zero and does not alter errno. On returning from the routine
tb_confstr(), the only conditional test is for the return code of zero and
no test for the unchanged errno. The test results which for test case 1,2,3
are Uninitiated and for test case 4 is Unresolved are the result of the
test_prepare() failing. The test cases should allow and test for the case where
name does not have a configuration-defined value. The test result for these
test cases if there is no configuration-defined value for _CS_PATH should be
unsupported.Test Output
************************************************************************
/tset/XPG4.os/procenv/confstr/T.confstr 1 Uninitiated
Test Description:
When len is greater than zero and name is set to _CS_PATH, then a call
to confstr() places upto the first len-1 bytes of a string into the
buffer buf and terminates this with a null byte. If the
implementation supports POSIX.2, the string contains the value for a
PATH environment variable that finds all standard utilities
Testing Requirements: Test with values of len less than, equal to and
greater than the length of the returned value.
Test Information:
confstr(_CS_PATH,buf,4096) failed in setup
************************************************************************
************************************************************************
/tset/XPG4.os/procenv/confstr/T.confstr 2 Uninitiated
Test Description:
When len is set to 0, buf is set to NULL, and name is set to _CS_PATH,
then a call to confstr() returns an integer value of the size required
for the buffer needed to contain the entire configuration defined
value.
Test Information:
confstr(_CS_PATH,buf,4096) failed in setup
************************************************************************
************************************************************************
/tset/XPG4.os/procenv/confstr/T.confstr 3 Uninitiated
Test Description:
A call to confstr() returns an integer value of the size required for
the buffer needed to contain the entire configuration defined value.
Test Information:
confstr(_CS_PATH,buf,4096) failed in setup
************************************************************************
************************************************************************
/tset/XPG4.os/procenv/confstr/T.confstr 4 Unresolved
Test Description:
When the name argument does not specify a valid value, then a call to
confstr() sets errno to EINVAL and returns zero.
Test Information:
path tracing error: path counter 0, expected 1
***********************************************************************
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted as a test suite fault and it is recommended that a waiver
be granted on the grounds of a test suite deficiency.
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 0172
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority