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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1281 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 1281.


Report 1281 Actions


    Problem Report Number 1281
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0563
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-08-14 08:00
    Product Standard Internationalised Terminal Interfaces
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification xcurses/pecho_wchar 2
    Problem Summary TSD4U.00255 This test may fail if the implementation does not update the screen when refresh() is called on a pad.
    Problem Text
    >From CAPIxcurses/fpecho_wch/fpecho_wch1.c:

    while(chars_left--)
    {
    s2 = pecho_wchar(sub_window, &wchstr[0]);
    if (s2 == ERR) {
    curout(TET_FAIL, "pecho_wchar", s2);
    return;
    }
    s2 = pecho_wchar(sub_window, &wchstr[0]);
    if (s2 == ERR) {
    curout(TET_FAIL, "pecho_wchar", s2);
    return;
    }
    s2 = waddch(sub_window, (chtype)(*text++)); /*Here*/
    if (s2 == ERR)
    {
    curout(TET_FAIL, "waddch", s2);
    return;
    }
    }
    avs_check_screen(sub_window, "PECHO_WCH", "data12");

    The marked line is the last change to the test pad. But waddch() does not
    automatically refresh the pad, so the following avs_check_screen() fails.

    The test passes if the screen is refreshed:

    prefresh(sub_window, sub_window->_refy, sub_window->_refx,
    sub_window->_sminy, sub_window->_sminx,
    sub_window->_smaxy, sub_window->_smaxx);
    Test Output
    10|1221 /tset/CAPIxcurses/fpecho_wch/fpecho_wch1 04:56:24|TC Start,
    scenario ref
    176-486
    15|1221 1.10 18|TCM Start
    400|1221 1 1 04:56:24|IC Start
    200|1221 1 04:56:24|TP Start
    520|1221 2 18937 1 1|SPEC1170TESTSUITE CASE 2
    520|1221 2 18937 1 2|When the character portion of wch is a backspace a
    520|1221 2 18937 1 3|call to int pecho_wchar(WINDOW *pad, const cchar_t
    520|1221 2 18937 1 4|*wch) shall move the cursor position for the pad pad
    520|1221 2 18937 1 5|one column toward the start of the current line.
    520|1221 2 18941 1 1|PREP: Set test locale: xcurses
    520|1221 2 18941 1 2|PREP: Set environment variables and open terminal connection
    520|1221 2 18941 2 1|PREP: Call newterm
    520|1221 2 18941 2 2|PREP: Initialize color pairs
    520|1221 2 18941 2 3|PREP: Create a pad
    520|1221 2 18941 2 4|TEST: Write a string from end of line to beginning with
    520|1221 2 18941 2 5| backspace/backspace/character sequence
    520|1221 2 18941 2 6|TEST: Data on terminal screen matches expected data
    520|1221 2 18941 2 7|ERROR: Line 0 is not as expected. Expected line is:
    520|1221 2 18941 2 8|9876543210zyxwvutsrqponmlkjihgfedcba
    520|1221 2 18941 2 9|ERROR: Actual line is:
    520|1221 2 18941 2 10| 876543210zyxwvutsrqponmlkjihgfedcba
    520|1221 2 18941 2 11| Expected data: $TET_ROOT/CAPI/tset/CAPIxcurses/data /PECHO_WCH/data12.scrn.
    520|1221 2 18941 2 12| Actual data: $TET_ROOT/CAPI/tset/CAPIxcurses/tmp/PECHO_WCH/data12.scrn
    520|1221 2 18941 2 13|CLEANUP: Call endwin
    520|1221 2 18941 2 14|CLEANUP: Call delscreen
    520|1221 2 18941 2 15|CLEANUP: Restore environment variables and close terminal connection
    220|1221 2 1 04:56:30|FAIL
    410|1221 2 1 04:56:30|IC End

    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 releases listed.

    Notes:

    1) The submitter did not supply a value for the WT macro; so we have made this
    a TSD request.

    2) The correction recommended by the submitter is non-portable as it
    references members of the WINDOW structure, which is opaque. The
    solution implemented is to add:

    prefresh(sub_window, 0, 0, 0, 0, S_W_LINES, S_W_COLS);

    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