|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2463 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 2463.
Report 2463 Actions
Problem Report Number 2463 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1283 Raised 2005-05-18 17:47 Updated 2005-06-07 20:25 Published 2005-06-07 20:25 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSX4 version 4.6.4 Test Identification POSIX.os/ioprim/fcntl_X 1,2 Specification Base Definitions Issue 6 Problem Summary O_SYNC missing from "all standard open flags" mask Problem Text In these tests the result returned by fcntl(F_GETFL, ...) is masked
with the contents of the variable all_o_flags. This variable is
initialised thus:
122 /* Mask for all standard open flags */
123 all_o_flags =
(O_NONBLOCK|O_APPEND|O_CREAT|O_EXCL|O_NOCTTY|O_TRUNC);
124 all_o_flags |= (O_RDONLY|O_WRONLY|O_RDWR|O_ACCMODE);
125 #ifdef O_DSYNC
126 all_o_flags |= O_DSYNC;
127 #endif
128 #ifdef O_RSYNC
129 all_o_flags |= O_RSYNC;
130 #endif
Since the O_SYNC flag is missing, this causes the tests to report
incorrectly that fcntl() has not included O_SYNC in the returned flags.Test Output /tset/POSIX.os/ioprim/fcntl_X/T.fcntl_X 1 Failed
Test Description:
On a call to fcntl(fildes, F_GETFL), the file access modes and
status
flags O_RDONLY, O_WRONLY, O_RDWR, O_NONBLOCK, O_APPEND and
O_SYNC are
returned for the file description associated with fildes.
Test Strategy:
FOR various combinations of file status flags:
OPEN file with (O_CREAT | status_flags)
VERIFY fcntl(fd, F_GETFL) returns status_flags
Test Information:
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 02, file was opened with 0202
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 05, file was opened with 0205
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 011, file was opened with 0211
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 016, file was opened with 0216
/tset/POSIX.os/ioprim/fcntl_X/T.fcntl_X 2 Failed
Test Description:
When flags contains the current status flags for the file
description
associated with fildes and the O_SYNC flag is not set in flags,
then a
successful call to fcntl(fildes, F_SETFL, flags|O_SYNC) sets the
O_SYNC flag for the file description.
Test Strategy:
FOR various combinations of file status flags with O_SYNC clear:
OPEN file with (O_CREAT | status_flags)
CALL fcntl(fd, F_SETFL, status_flags|O_SYNC)
VERIFY fcntl(fd, F_GETFL) returns status_flags|O_SYNC
Test Information:
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 02, flags had been set to 0202
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 05, flags had been set to 0205
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 011, flags had been set to 0211
fcntl(fd, F_GETFL, 0) did not return expected flags:
returned flags included 016, flags had been set to 0216Review Information
Review Type TSMA Review Start Date 2005-05-18 17:47 Last Updated 2005-05-18 18:49 Completed 2005-05-18 18:49 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response This is accepted as a fault in the test suite.
Review Type SA Review Start Date 2005-05-18 17:49 Last Updated 2005-05-21 00:37 Completed 2005-05-21 00:37 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion This PR represents an agreed test suite deficiency
Problem Reporting System Options:
- View Report 2463
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority