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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1114 Actions


    Problem Report Number 1114
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0316
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    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/getstr 17
    Problem Summary PG4U.00157 This implementation is failing these tests due to the setting of the ICANON flag.
    Problem Text
    This IR is for getstr #17, getnstr #17, mvgetstr #17, mvgetnstr #17,
    mvwgetstr #17, mvwgetnstr #17
    wgetstr #17, and wgetnstr #17

    CAE Specification, System Interface Definitions, Issue 4, Version 2,
    Section 9.2.5 Local Modes pg 126 states:

    "If ECHOE and ICANON are set, the ERASE character causes the terminal to
    erase, if possible,
    the last character in current line from the display...

    If ECHOK and ICANON are set, the KILL character causes the terminal to
    erase the line from the
    display or echoes the newline character after the KILL character."

    These testcases do not confirm that ECHOE, ECHOK, or ICANON are set. I
    queried thier settings
    on our implementation and found that ICANON was not set. Once I modified
    and set ICANON
    in the testcase it PASSed.
    Test Output
    TEST PURPOSE #17
    A call to int getnstr(char *str, int n)
    shall interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with getnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with getnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int getstr(char *str) shall interpret the
    kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with getstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with getstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int mvgetnstr(int y, int x, char *str, int n)
    shall interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with mvgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with mvgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int mvgetstr(int y, int x, char *str) shall
    interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with mvgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with mvgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int mvwgetnstr(WINDOW *win, int y, int x, char *str, int n)
    shall interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Create a window
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with mvwgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with mvwgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int mvwgetstr(WINDOW *win, int y, int x,
    char *str) shall interpret the kill and erase
    characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Create a window
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with mvwgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with mvwgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int wgetnstr(WINDOW *win, char *str, int n)
    shall interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Create a window
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with wgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with wgetnstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    TEST PURPOSE #17
    A call to int wgetstr(WINDOW *win, char *str) shall
    interpret the kill and erase characters.
    PREP: Set test locale: /vsu/IBM/xcurses_locale
    PREP: Set environment variables and open terminal connection
    PREP: Call newterm
    PREP: Initialize color pairs
    PREP: Create a window
    PREP: Set no-delay, keypad, nonl
    PREP: Output line with erase characters
    TEST: Read line with wgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello", received "Hexxl"
    PREP: Output line with Kill characters
    TEST: Read line with wgetstr
    TEST: Return value
    TEST: Data received correctly
    ERROR: Expected "Hello2", received "sdfjhs"
    CLEANUP: Call endwin
    CLEANUP: Call delscreen
    CLEANUP: Restore environment variables and close terminal connection
    17 FAIL

    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 for these routines states that the user's echo and kill
    characters are interpreted. Thus, it is the responsibility of the
    implementation to set the terminal modes necessary to ensure this occurs,
    not the application (here the test suite).

    Please note that ICANON is set by the test suite during initialization
    of the terminal devices for these tests (the code for this in the capi_xcurses
    library in the curs_prep module).

    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:

     

    Back   


Contact the Certification Authority