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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1287 Actions


    Problem Report Number 1287
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0569
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-07-30 08:00
    Product Standard Internationalised Terminal Interfaces
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification xcurses/pnoutrefresh 2
    Problem Summary TSD4U.00249 These tests will fail on implementations which consider smaxrow=-1 an error.
    Problem Text
    The failures covered by this request are:

    /tset/CAPIxcurses/fpnoutrefr/fpnoutrefr1 2
    /tset/CAPIxcurses/fprefresh/fprefresh1 2

    In CAPIxcurses/fprefresh/fprefresh1.c we have:

    ...
    tet_infoline("TEST: Call prefresh with negative position values");
    s2= prefresh(pad, -1, -1, -1, -1, -1, (int)strlen(str));
    if (s2 == ERR) {
    curout(TET_FAIL, "prefresh", s2);
    return;
    }
    ....

    The second through sixth arguments to prefresh set pminrow, pmincol,
    sminrow, smincol, and smaxrow to -1, expecting the values to be treated
    as zero. According to Curses Interface 4.2, p. 150, negative values of
    pminrow, pmincol, sminrow, and smincol are treated as zero, but no such
    behavior is specified for smaxrow. The prefresh() call is correctly
    failing on an incorrect argument value.

    The case in CAPIxcurses/fpnoutrefr/fpnoutrefr1.c is similar.
    Test Output
    10|1225 /tset/CAPIxcurses/fpnoutrefr/fpnoutrefr1 04:58:42|TC Start,
    scenario ref
    176-490
    15|1225 1.10 3|TCM Start
    400|1225 1 1 04:58:42|IC Start
    200|1225 1 04:58:42|TP Start
    520|1225 2 19053 1 1|SPEC1170TESTSUITE CASE 2
    520|1225 2 19053 1 2|A call to int pnoutrefresh(WINDOW *pad, int pminrow,
    520|1225 2 19053 1 3|int pmincol, int sminrow, int xmincol, int smaxrow,
    520|1225 2 19053 1 4|int smaxcol) shall treat negative values of position
    520|1225 2 19053 1 5|specification arguments as if they were 0.
    520|1225 2 19057 1 1|PREP: Set test locale: xcurses
    520|1225 2 19057 1 2|PREP: Set environment variables and open terminal
    connectio
    n
    520|1225 2 19057 2 1|PREP: Call newterm
    520|1225 2 19057 2 2|PREP: Initialize color pairs
    520|1225 2 19057 2 3|PREP: Create a pad
    520|1225 2 19057 2 4|PREP: Write a string into the pad
    520|1225 2 19057 2 5|TEST: Call pnoutrefresh with negative position
    values
    520|1225 2 19057 2 6|ERROR: pnoutrefresh call returned -1
    220|1225 2 1 04:58:45|FAIL
    410|1225 2 1 04:58:45|IC End
    ---
    10|1227 /tset/CAPIxcurses/fprefresh/fprefresh1 04:58:48|TC Start,
    scenario ref 1
    76-492
    15|1227 1.10 3|TCM Start
    400|1227 2 1 04:58:55|IC Start
    200|1227 2 04:58:55|TP Start
    520|1227 2 19074 1 1|SPEC1170TESTSUITE CASE 2
    520|1227 2 19074 1 2|A call to int prefresh(WINDOW *pad, int pminrow, int
    520|1227 2 19074 1 3|pmincol, int sminrow, int smincol, int smaxrow, int
    520|1227 2 19074 1 4|smaxcol) shall treat negative values of position
    520|1227 2 19074 1 5|specification arguments as if they were 0.
    520|1227 2 19078 1 1|PREP: Set test locale: xcurses
    520|1227 2 19078 1 2|PREP: Set environment variables and open terminal
    connectio
    n
    520|1227 2 19078 2 1|PREP: Call newterm
    520|1227 2 19078 2 2|PREP: Initialize color pairs
    520|1227 2 19078 2 3|PREP: Create pad
    520|1227 2 19078 2 4|PREP: Write a string into pad
    520|1227 2 19078 2 5|TEST: Call prefresh with negative position values
    520|1227 2 19078 2 6|ERROR: prefresh call returned -1
    220|1227 2 1 04:58:55|FAIL
    410|1227 2 1 04:58:55|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.

    Please note the submitter did not specify a reason code for this request.
    We have made it a type 1 (TSD) request.

    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