|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1360 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 1360.
Report 1360 Actions
Problem Report Number 1360 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0642 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1997-01-10 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.1 Test Identification base/readv 22 Problem Summary TSD4U.00175 This test may fail on implementations where the master pseudo-terminal device does not fully support the functionality of a terminal device. Problem Text
This test may fail on implementations where the master pseudo-terminal
device does not fully support the functionality of a terminal device.
Routine test22A() in freadv22.c has this segment of code that is doing
tcsetattr on the master device file descriptor (ie. tfd) and this
fails causing the test purpose to return unresolved. The call should
be made on the slave pseudo-terminal device.
We believe the call to tcgetattr() constitutes a deficiency in the test
suite. In calling tcgetattr() on the master device, the test assumes the
master device supports the interface and functionality of a terminal device.
While this is a documented requirement of a pseudo-terminal's slave device,
it is not a documented requirement for the master device.
The definition of pseudo-terminal appears on pages 25 and 26 of the System
Interface Definitions Issue 4, Version 2. It states:
A pseudo-terminal provides the process with an interface that is identical
to the terminal subsystem. A pseudo-terminal is composed of 2 devices,
the master device and a slave device. The slave device provides processes
with an interface that is identical to the terminal interface, although
there need not be hardware behind that interface. Anything written on
the master device is presented to the slave as an input and anything
written on the slave device is presented as an input on the master side.
There is no requirement for the master device to provide terminal inter-
face-style support in the pseudo-terminal definition. As such, the master
device should not be expected to support the general terminal interface con-
trol functions, of which tcgetattr() and tcsetattr() are a part. The test
purpose should be rewritten so it doesn't depend upon non-required support
from the master device.Test Output
200|5656 1 17:10:47|TP Start
520|5656 1 12187 1 1|SPEC1170TESTSUITE CASE 22
520|5656 1 12187 1 2|A call to ssize_t readv(int fildes, const struct iovec
520|5656 1 12187 1 3|*iov, int iovcnt) when the function is interrupted by
520|5656 1 12187 1 4|a signal after it has successfully read some data
520|5656 1 12187 1 5|shall return the number of bytes read.
520|5656 1 12188 1 1|PREP: Read IOV_MAX system configuration
520|5656 1 12188 1 2|PREP: Allocate and initialize I/O buffers
520|5656 1 12189 1 1|PREP: Open and initialize the terminal files
520|5656 1 12189 1 2|ERROR: tcgetattr failed, errno = 22(EINVAL - Invalid argument)
520|5656 1 12189 1 3|ERROR: Termios_prep failed
520|5656 1 12191 1 1|PREP: Open and initialize the terminal files
520|5656 1 12191 1 2|ERROR: tcgetattr failed, errno = 22(EINVAL - Invalid argument)
520|5656 1 12191 1 3|ERROR: Termios_prep failed
520|5656 1 12188 3 1|CLEANUP: Free iovec buffers
220|5656 1 2 17:10:47|UNRESOLVED
or possibly...
200|5656 1 06:25:34|TP Start
520|5656 1 2030043204 1 1|SPEC1170TESTSUITE CASE 22
520|5656 1 2030043204 1 2|A call to ssize_t readv(int fildes, const struct iovec
520|5656 1 2030043204 1 3|*iov, int iovcnt) when the function is interrupted by
520|5656 1 2030043204 1 4|a signal after it has successfully read some data
520|5656 1 2030043204 1 5|shall return the number of bytes read.
520|5656 1 1962934327 1 1|PREP: Read IOV_MAX system configuration
520|5656 1 1962934327 1 2|PREP: Allocate and initialize I/O buffers
520|5656 1 1677721665 1 1|PREP: Open and initialize the terminal files
520|5656 1 1677721665 1 2|ERROR: tcsetattr failed, errno = 121(EINVAL - Invalid argument)
520|5656 1 1694498881 1 1|PREP: Open and initialize the terminal files
520|5656 1 1694498881 1 2|ERROR: tcsetattr failed, errno = 121(EINVAL - Invalid argument)
520|5656 1 1962934327 3 1|CLEANUP: Free iovec buffers
220|5656 1 2 06:25:35|UNRESOLVEDReview 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 1360
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority