|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1291 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 1291.
Report 1291 Actions
Problem Report Number 1291 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0573 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-07-29 08:00 Product Standard Internationalised Terminal Interfaces Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification xcurses/vidattr 1 Problem Summary TSD4U.00245 This test will fail on system that use types of different sizes for chtype and attr_t. Problem Text
These code fragments are from CAPIxcurses/fvidattr/fvidattr1.c:
struct {
attr_t attr;
xcur_chtype attrbit;
char *attrname;
} attrdata[] = {
/*wid ones not used with this function*/
WA_HORIZONTAL, 0, "Horizontal Highlight",
WA_INVIS, 0, "Invisible",
WA_LEFT, 0, "Left Highlight",
WA_LOW, 0, "Low Highlight",
WA_PROTECT, 0, "Protected",
WA_RIGHT, 0, "Right Highlight",
WA_TOP, 0, "Top Highlight",
WA_VERTICAL, 0, "Vertical Highlight",
WA_STANDOUT, XCUR_A_STANDOUT, "Standout",
WA_UNDERLINE, XCUR_A_UNDERLINE, "Underline",
WA_REVERSE, XCUR_A_REVERSE, "Reverse",
WA_BLINK, XCUR_A_BLINK, "Blink",
WA_DIM, XCUR_A_DIM, "Dim",
WA_BOLD, XCUR_A_BOLD, "Bold",
0, 0, "Unused VT attr bit",
WA_ALTCHARSET, XCUR_A_ALTCHARSET, "Altcharset"};
static void test1A(void)
{
....
s2 = vidattr(attrdata[j].attr);
....
}
vidattr() accepts arguments of type "chtype" (Curses Interface 4.2, p.
207). These are the A_* attribute identifiers required in <curses.h>.
The test program builds an array of arguments for vidattr(), but uses
type "attr_t", and the WA_* attribute identifiers also required in
<curses.h>.
In our implementation, attr_t and chtype are of different types and
values, where (for example), in <curses.h> we have:
#define WA_STANDOUT 0x0001
but
#define A_STANDOUT 0x00010000L
There is no requirement in the standard that the A_* and WA_* attribute
identifiers be of the same types or have the same values.Test Output
10|1371 /tset/CAPIxcurses/fvidattr/fvidattr1 05:15:49|TC Start, scenario ref 176
-638
15|1371 1.10 2|TCM Start
400|1371 1 1 05:15:49|IC Start
200|1371 1 05:15:49|TP Start
520|1371 1 20758 1 1|SPEC1170TESTSUITE CASE 1
520|1371 1 20758 1 2|A successful call to int vidattr(chtype attr) shall
520|1371 1 20758 1 3|output through putchar() the string necessary to cause
520|1371 1 20758 1 4|the current terminal to display text with the
520|1371 1 20758 1 5|attributes attr and return OK.
520|1371 1 20759 1 1|PREP: Set test locale: xcurses
520|1371 1 20759 1 2|PREP: Set environment variables and open terminal connectio
n
520|1371 1 20759 2 1|PREP: Call newterm
520|1371 1 20759 2 2|PREP: Initialize color pairs
520|1371 1 20759 2 3|TEST: Call vidattr for Standout
520|1371 1 20759 2 4|ERROR: Standout attribute should be on, is off
520|1371 1 20759 2 5|TEST: Call vidattr for Underline
520|1371 1 20759 2 6|ERROR: Underline attribute should be on, is off
520|1371 1 20759 2 7|TEST: Call vidattr for Reverse
520|1371 1 20759 2 8|ERROR: Reverse attribute should be on, is off
520|1371 1 20759 2 9|TEST: Call vidattr for Blink
520|1371 1 20759 2 10|ERROR: Blink attribute should be on, is off
520|1371 1 20759 2 11|TEST: Call vidattr for Dim
520|1371 1 20759 2 12|ERROR: Dim attribute should be on, is off
520|1371 1 20759 2 13|TEST: Call vidattr for Bold
520|1371 1 20759 2 14|ERROR: Bold attribute should be on, is off
520|1371 1 20759 2 15|TEST: Call vidattr for Altcharset
520|1371 1 20759 2 16|CLEANUP: Call endwin
520|1371 1 20759 2 17|CLEANUP: Call delscreen
520|1371 1 20759 2 18|CLEANUP: Restore environment variables and close terminal
connection
220|1371 1 1 05:16:09|FAIL
410|1371 1 1 05:16:09|IC EndReview 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 1291
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority