|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0195 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 0195.
Report 0195 Actions
Problem Report Number 0195 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0195 Raised 1994-10-17 08:00 Updated 2003-03-13 08:00 Published 1994-10-27 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.4 Test Identification ANSI.os/streamio/fflush 8 (and others listed below) Problem Summary TSD4.195 The VSX suite is expecting fflush() to set the error indicator but according the the XPG4 standard it is not required to do so. Page 112 of CAE Specification System Interfaces and Headers, Issue 4, un... Problem Text
The VSX suite is expecting fflush() to set the error indicator but
according the the XPG4 standard it is not required to do so.
Page 112 of CAE Specification System Interfaces and Headers, Issue 4,
under section RETURN VALUE, states:
"Upon successful completion, the fflush() function returns 0.
Otherwise, it returns EOF and sets errno to indicate the error."
Nowhere in the section for fflush() is there any mention that the
error indicator must be set. The ANSI C standard, also, does not
require that fflush() set the error indicator.
This problem also exists in the following test cases:
/tset/ANSI.os/streamio/fflush/T.fflush 5 Failed
/tset/ANSI.os/streamio/fflush/T.fflush 6 Failed
/tset/ANSI.os/streamio/fflush/T.fflush 7 Failed
/tset/ANSI.os/streamio/fflush/T.fflush 8 Failed
/tset/ANSI.os/streamio/fflush/T.fflush 9 Unresolved
/tset/ANSI.os/streamio/fflush/T.fflush 10 Failed
/tset/ANSI.os/streamio/fflush/T.fflush 11 Failed
Note: test #9 is included in this list but is "Unresolved" because
we haven't set VSX_ULIMIT_BLKS yet. If we were to set
VSX_ULIMIT_BLKS, we believe the error would exist in test 9 as well
since tests 5 through 11 all share the same code.Test Output
/tset/ANSI.os/streamio/fflush/T.fflush 5 Failed
Test Description:
For the XNFS specification:
Not in use.
For the XSH specification:
EAGAIN in errno and a return value of EOF when fflush() is called
and the underlying file descriptor references a pipe with the
O_NONBLOCK flag set and there is insufficient capacity in the pipe
to accept the data.
Posix Ref: Component FFLUSH Assertion 8.2.3.11-07(C)
Test Strategy:
CREATE a write on a pipe with O_NONBLOCK set using do_ferr() -
(tsetlib)
VERIFY that EOF has been returned and that errno has been set to
EAGAIN
Test Information:
fflush() failed to set error indicator when testing for errno
112(EAGAIN)Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
All of the other stream related functions which produce errors set the
stream indicator, but fflush() is not specified as producing this behaviour.
This is slightly strange and may be caused by a problem in the XPG specification
or have been a conscious decision of the working group.
It is accepted that this is a test suite deficiency and it is recommended
that a waiver is granted.
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 0195
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority