HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1274 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1274.


Report 1274 Actions


    Problem Report Number 1274
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0556
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-11-05 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification CAPIxcurses/box_set 5
    Problem Summary TSD4U.00262 This test may fail due to an extraneous attr_set call.
    Problem Text
    box_set #5 is failing on our platform because the test suite is
    requiring the corners to have the background attribute set.

    The test case:
    calls wattr_set() with WA_PROTECT and color pair 11
    calls wbkgrndset() with 'b',REVERSE,COLOR_PAIR(46)
    and then again calls wattr_set() with WA_PROTECT and color pair 11


    Since wbkgrndset() ORs the attributes into the window rendition after
    the 1st call to wattr_set() and the call to wbkgrndset() the window
    attributes are protect and reverse.

    The 2nd call to wattr_set() re-sets the window rendition, and therefore
    looses the REVERSE attribute which was OR-ed into the window rendition
    via wbkgrndset(). It does not affect the background rendition.

    When box_set() is called:
    the window rendition are PROTECT, color pair 11
    the background rendition is PROTECT and REVERSE, color pair 11.

    The corners are correctly set using the default characters value for
    WACS_**CORNER (+). Since this isn't the space character, the background
    character and attributes are NOT used for the corners, and these corner
    positions use the window attributes (protect only).

    Since box_set() is subsequently called in the test case with the space
    character, the background rendition (character 'b' with both the
    protected and reverse attributes) is correctly used for the vertical
    and horizontal parts of the box.

    Note that if we modify the test case to remove the 2nd call to
    wattr_set() this testcase PASSes on our platform.
    Test Output
    VSU5 DETAILED RESULTS REPORT


    SECTION: Discrete Tests

    TEST CASE: xbox_set

    TEST PURPOSE #5
    On a call to int box_set(WINDOW *win, const cchar_t
    *verch, const cchar_t *horch) when a character is the
    space character the window win shall receive
    background character, the attributes specified for the
    character OR-ed with the window attributes, and
    the color specified for the character or the
    window color if no color is specified.
    PREP: Start curses
    PREP: Set test locale: /tmp/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Create a window
    PREP: Set the window rendition(A_PROTECT, COLOR_PAIR(11)
    PREP: Turn on background attributes 'b',REVERSE,COLOR_PAIR(46)
    PREP: Set the window rendition(A_PROTECT, COLOR_PAIR(11)
    TEST: Call box_set with verch as space with WA_BOLD|COLOR_PAIR(28)
    and horch as space with WA_DIM
    TEST: Data on terminal screen matches expected data
    ERROR: Line 5 is not as expected. Expected line is:
    +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb+
    ERROR: Actual line is:
    +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb+
    ERROR: Reverse attribute should be on at (r=5, c=5), is off
    ERROR: Reverse attribute should be on at (r=5, c=39), is off
    ERROR: Line 9 is not as expected. Expected line is:
    +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb+
    ERROR: Actual line is:
    +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb+
    ERROR: Reverse attribute should be on at (r=9, c=5), is off
    ERROR: Reverse attribute should be on at (r=9, c=39), is off
    Expected data:
    $TET_ROOT/CAPI/tset/CAPIxcurses/data/BOX_SET/data4a.scrn.
    Actual data: $TET_ROOT/CAPI/tset/CAPIxcurses/tmp/BOX_SET/data4a.scrn
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    5 FAIL


    Review 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:

     

    Back   


Contact the Certification Authority