|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1418 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 1418.
Report 1418 Actions
Problem Report Number 1418 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0700 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-03-18 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.0 Test Identification base/getpriority 11 Problem Summary TSD4U.00115 This test may fail on implementations where uid_t and gid_t are unsigned types. Problem Text
This test may fail on implementations where uid_t and gid_t
are unsigned types.
This interpretation requests covers the following assertions:
/tset/CAPIbase/fgetpriori/fgetpriori11
/tset/CAPIbase/fsetpriori/fsetpriori12
These tests are failing because they use negative numbers for
invalid UIDs. POSIX and XPG4 require UIDs and GIDs to be non-negative
integers. Additionally, POSIX and XPG4 make no requirement for uid_t
and gid_t to be a signed or unsigned type. Our implementation defines
UIDs and GIDs to be of type unsigned int giving valid UIDs and GIDs in
the range of 0 - 4294967295. Use of negative UIDs results in conversion
to a number in the valid range i.e. -1 gets converted to 4294967295, -2
gets converted to 4294967294 and so on. As these are valid UIDs, the tests
never will get an EINVAL errno.
Also note that no invalid UID exists on our system, we support the
use of the entire 0 - 4294967295 range. Configuration variables must be
added to the tetexec.cfg file for invalid UIDs and GIDs. These variables
must allow that on some implementations, no invalid UIDs and GIDs exist.Test Output
TEST CASE: getpriority
TEST PURPOSE #11
EINVAL in errno and return -1 on a call to int
getpriority(int which, id_t who) when which is
PRIO_USER and who is not a valid user ID.
TEST: getpriority(PRIO_USER, -1) returns -1 and sets
errno to EINVAL
ERROR: getpriority set errno to an invalid value
Expected: 22(EINVAL) Received: 3(ESRCH - No such process)
11 FAIL
TEST CASE: setpriority
TEST PURPOSE #13
EINVAL in errno and return -1 on a call to int
setpriority(int which, id_t who, int priority) when
who is not a valid user ID.
PREP: Obtain a valid numeric value for priority
TEST: setpriority(PRIO_USER, -1, priority) returns -1 and sets
errno to EINVAL
ERROR: setpriority set errno to an invalid value
Expected: 22(EINVAL) Received: 3(ESRCH - No such process)
13 FAILReview 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 1418
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority