|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1310 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 1310.
Report 1310 Actions
Problem Report Number 1310 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0592 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-05-18 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification CAPIbase/ioctl 22 Problem Summary TSD4U.00226 A delay is needed on slower systems to accomodate message transit time. Problem Text
This test failure is exposed on slower systems. The assertion is
failing at the point where the test code is calling putpmsg() in a
loop to fill up the underlying streams. However, with streams
flow control in place, it takes time for the data to flow through,
and hence the exposure of the problem on slower systems. To ensure
that the data does fill up the underlying streams completely, a
sleep() needs to be added to test after each call to putmsg().
We have verified that a sleep(4) added to the following code results
in this test passing on slower systems.
tset/CAPIbase/fioctl/fioctl22.c:
printf("PREP: Fill band 1 write queue of STREAM\n");
for(;;) {
memset(ctlbuf, 'C', sizeof(ctlbuf));
ctl.buf = ctlbuf;
ctl.len = sizeof(ctlbuf);
memset(databuf, 'D', sizeof(databuf));
data.buf = databuf;
data.len = sizeof(databuf);
band = 1;
flags = MSG_BAND;
if((result =
putpmsg(fildes[1], &ctl, &data, band, flags)) == -1) {
break;
}
sleep(4);
}Test Output
TEST CASE: ioctl
TEST PURPOSE #22
A successful call to int ioctl(int fildes,
I_FLUSHBAND, (struct bandinfo *)arg) when fildes
refers to a STREAMS device and the bi_flags member of
the structure pointed to by arg is FLUSHRW shall flush
messages in the band specified by the bi_pri member of
the structure from the STREAM's read and write queues
and return a value other than -1.
PREP: Open master pseudo tty
PREP: Determine if pseudo tty is a stream
PREP: Open slave side of pseudo tty
PREP: Set O_NONBLOCK on both ends of the STREAM
PREP: Put a message on band 1 of the STREAM
TEST: Flush of band 0 returns other than -1
TEST: Flush of band 0 has no effect on band 1
PREP: Put a message on band 1 of the STREAM
TEST: Flush of band 1 returns other than -1
TEST: Flush of band 1 flushed queue
PREP: Fill band 1 write queue of STREAM
TEST: Flush of band 0 returns other than -1
TEST: Flush of band 0 has no effect on band 1
ERROR: Data on band 1 was flushed
22 FAIL
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
A Test Suite Defiency is recommended.
We agree that message transit time may need to be accomodated.
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 1310
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority