|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1125 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 1125.
Report 1125 Actions
Problem Report Number 1125 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0327 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised Terminal Interfaces Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification xcurses/restartterm 1 Problem Summary PG4U.00146 The implementation is returning -1 for an empty string capability. Problem Text
Here is the failing code fragment:
tet_infoline("TEST: String capabilities are initialized");
if (strcmp(tigetstr("sc"), "") != 0){
sprintf(ebuf, "ERROR: Expected save_cursor = \"\", is \"%s\"",
tigetstr("sc"));
The test is assuming that tigetstr("sc") will return a null string when
the terminal does not have the "sc" capability. But according to Curses
Interface, 4.2, p. 196, tigetstr() should return (char *)-1 here, as
our implementation does. strcmp() fails with a segmentation violation on
(char *)-1.Test Output
10|0 /tset/CAPIxcurses/frestartte/frestartte1 15:29:25|TC Start, scenario
ref 0-
1
15|0 1.10 13|TCM Start
400|0 1 1 15:29:26|IC Start
200|0 1 15:29:26|TP Start
520|0 1 19690 1 1|SPEC1170TESTSUITE CASE 1
520|0 1 19690 1 2|A call to TERMINAL *restartterm(char *term, int
520|0 1 19690 1 3|fildes, int *errret) shall read in the terminfo
520|0 1 19690 1 4|database and initialize the terminfo data structures.
520|0 1 19691 1 1|PREP: Set test locale: xcurses
520|0 1 19691 1 2|PREP: Set environment variables and open terminal
connection
520|0 1 19691 2 1|PREP: Call newterm
520|0 1 19691 2 2|PREP: Initialize color pairs
520|0 1 19691 2 3|TEST: Call restartterm with a different terminal
520|0 1 19691 2 4|TEST: Boolean capabilities are initialized
520|0 1 19691 2 5|TEST: Numeric capabilities are initialized
520|0 1 19691 2 6|TEST: String capabilities are initialized
520|0 1 19690 2 1|ERROR: TEST TERMINATED DUE TO SIGSEGV SIGNAL (11)
220|0 1 1 15:29:26|FAIL
410|0 1 1 15:29:26|IC End
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 specification says tigetstr will return (char *)-1 only if capname
is not a defined string capability, however sc is a defined string
capability in the specification. Thus the implementation is non-conforming
in indicating an error for it. Rather, the capability is valid but simply
empty here and thus the test is correct as written in expecting an empty
string as the value for it. This is standard practice in order to allow
application portability across terminals with varied sets of capabilities.
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 1125
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority