|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0575 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 0575.
Report 0575 Actions
Problem Report Number 0575 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0179 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Commands and Utilities V2 (UNIX 95) Certification Program The Open Brand certification program Test Suite VSC version 4.1.6 Test Identification POSIX.cmd/ed/ed_04.ex 189 Problem Summary PG4C.00098 This request claims that the test may fail because it does not properly exit the ed command. Problem Text
ed assertion 189 intermittently hangs on our system. Some of the testcase code
looks like this:
send "1,\$t\$ 0a\n" line 11841
expect {
\\? { # ok }
timeout { exit 1 }
}
exec sleep 5
close
wait line 11848
It appears that the testcase is missing the command to close the
file being editted. Adding "send "Q\n"(Capital Q <newline>) before the
"exec sleep 5" statement clears the hangs. This appears to be consistent
with other tests that use expect.
Test Output
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
The submitter is correct in stating that the expect script does
not exit ed (which is what the Q command does) before attempting
to terminate the expect script. But we do not believe this is a
valid reason for the test to fail.
The expect script starts its termination process by issuing the
expect command, "close". This command closes standard input to
the ed process. Once this happens any future attempt by ed to
read from stdin will return EOF. Although it is not mandated
this will cause the ed process to exit on most implementations.
The close command also sends the ed process a SIGHUP signal.
According to the XCU ed spec
The ed utility will take the standard action for all signals
(see ASYNCHRONOUS EVENTS in the XBD specification, Section 2.1,
Utility Description Defaults) with the following exceptions:
SIGHUP
If the buffer is not empty and has changed since the last write,
the ed utility will attempt to write a copy of the buffer in a
file. First, the file named ed.hup in the current directory will
be used; if that fails, the file named ed.hup in the directory
named by the HOME environment variable will be used. In any
case, the ed utility will exit without returning to command mode.
So even if the submitters implementation of ed ignores EOF it
should exit when it receives the SIGHUP signal.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 0575
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority