|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0051 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 0051.
Report 0051 Actions
Problem Report Number 0051 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0051 Raised 1992-11-18 08:00 Updated 2003-03-13 08:00 Published 1992-11-27 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.2.3 Test Identification ANSI.os/streamio/setbuf 2 Problem Summary TSD4.051 This test makes assumptions about the underlying implementation of stdio buffering which is not required. The buffers for fully buffered stdio write streams are flushed only when: + fclose, fflush, fs... Problem Text
This test makes assumptions about the underlying
implementation of stdio buffering which is not required.
The buffers for fully buffered stdio write streams are flushed only when:
+ fclose, fflush, fseek, or rewind is called,
+ the stream is freopen'd, or
+ when an attempt to add another byte to the buffer fails because it is full.
This test makes an assumption that when BUFSIZ bytes have been presented to
be written that they will be flushed to the file. This cannot be assumed
since there is no guarantee that stdio must flush the buffer as soon as it
is filled (i.e., it can wait until at least one more byte is presented to be
written), or that the true buffer size is BUFSIZ (since stdio does not have
to use the provided buffer, or since other buffers could be used as well as
the one provided).
The test needs to be fixed so that it calls fflush() before it expects to see
an updated file.Test Output
/tset/ANSI.os/streamio/setbuf/T.setbuf 2 Failed
Test Description:
setbuf() causes data fwritten() to the stream to be buffered into the
array buf. The buffer will be flushed when it is full.
Test Strategy: {information removed}
Test Information:
buffer buf1 contained wrong character (a) at position 512Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted as a test suite deficiency and a modification has been
supplied in VSX 4.2.4 in an attempt to resolve this.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
A test suite deficiency is granted.
Problem Reporting System Options:
- View Report 0051
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority