|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1320 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 1320.
Report 1320 Actions
Problem Report Number 1320 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0602 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-03-31 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification CAPIsockets/n/a/fghostbynam 9 Problem Summary TSD4U.00216 This test may fail as it is missing an include for arpa/inet.h. Problem Text
The test case #9 makes an assumption that the definition to inet_nota(struct
inaddr in) which is defined in <arpa/inet.h> is added by includes of other
include files which is an incorrect assumption. The test case includes
<netdh.h> which in the XNS issue 5 page 212 states
Inclusion of the <netdb.h> header may also make visible all symbols
from <netinet/in.h> and <inittypes.h>.
On page 213, for the <netinet/in.h> is stated
Inclusion of the of the <netinet/in.h> header may also make visible all
symbols from <arpa/inet.h>.
In both statements the inclusion "may" is used and thus is not a requirement.
The test case #9 needs to explicitly include <arpa/inet.h> so the defintion
of inet_nota(struct inaddr in) can be resolved correctly.
Another potential problem, is the wrong usage of inet_ntoa() by the test.
inet_ntoa() may return a pointer to static data that may be overwritten by
subsequent calls to inet_ntoa(). This has not been taken care of in the
above "strcmp" line of test9C().Test Output
200|8070 9 19:52:04|TP Start
520|8070 9 24938 1 1|SPEC1170TESTSUITE CASE 9
520|8070 9 24938 1 2|If the implementation supports the AF_INET
520|8070 9 24938 1 3|communications domain:
520|8070 9 24938 1 4|A successful call to struct hostent
520|8070 9 24938 1 5|*gethostbyname(const char *name) when name is an alias
520|8070 9 24938 1 6| for a valid host name shall return information about
520|8070 9 24938 1 7|the host name to which the alias refers and include
520|8070 9 24938 1 8|name in the list of aliases returned.
520|8070 9 24947 1 1|PREP: Find a host with an alias
520|8070 9 24947 1 2|TEST: gethostbyname returns host entry for an alias
520|8070 9 24947 1 3|TEST: Verify returned data
520|8070 9 24938 2 1|ERROR: TEST TERMINATED DUE TO SIGSEGV SIGNAL (11)
220|8070 9 1 19:52:05|FAIL
410|8070 9 1 19:52:05|IC EndReview 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 1320
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority