|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1349 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 1349.
Report 1349 Actions
Problem Report Number 1349 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0631 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1997-05-28 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.1 Test Identification base/getpmsg 32 Problem Summary TSD4U.00186 This test may fail because EINVAL is detected before the expected EBADF error. Problem Text
All the test case is doing is closing an fd, and doing a
getpmsg on that fd. The test cases expects this to return EBADF
This test case fails on MP-RAS.
In the kernel, we have the following check for the getpmsg
system call:
if (copyin((caddr_t)uap->pri, (caddr_t)&intpri, sizeof(int)))
return (EFAULT);
if ((intpri > 255) || (intpri < 0))
return (EINVAL);
We return EINVAL from here. The problem is that the test code
doesn't initialize intpri (band in the test code). Once we have it (band)
initialized to a proper value (say 0 or 5), then the test cases passes.Test Output
10|0 /tset/CAPIbase/fgetpmsg/fgetpmsg32 11:42:32|TC Start, scenario ref
0-1
15|0 1.10 1|TCM Start
400|0 32 1 11:42:33|IC Start
200|0 1 11:42:33|TP Start
520|0 1 28257 1 1|SPEC1170TESTSUITE CASE 32
520|0 1 28257 1 2|EBADF in errno and return -1 on a call to int
520|0 1 28257 1 3|getpmsg(int fildes, struct strbuf *ctlptr, struct
520|0 1 28257 1 4|strbuf *dataptr, int *bandp, int *flagsp) when fildes
520|0 1 28257 1 5|is not a valid file descriptor open for reading.
520|0 1 28262 1 1|TEST: Call to getpmsg with a closed file descriptor
returns -1520|0 1 28262 1 2|TEST: EBADF in errno
520|0 1 28262 1 3|ERROR: getpmsg set errno to 22(EINVAL - Invalid
argument)
220|0 1 1 11:42:33|FAIL
410|0 32 1 11:42:33|IC End
80|0 0 11:42:33|TC End
900|11:42:33|TCC 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 1349
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority