|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1791 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 1791.
Report 1791 Actions
Problem Report Number 1791 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0868 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-11-23 08:00 Product Standard X Window System Applications Interface Certification Program The Open Brand certification program Test Suite VSW version 5.0.1 Test Identification Xt9/tgrabkey/Test/XtGrabKey-1 1,2,3 Problem Summary TSD4W.00158 This test may fail on implementations because the keysym being used is out of range. Problem Text
We've found what we think to be a test suite problem that affects 8
different tests. The Basic problem is that the test suite tries to find
a keycode for the keysym 0 which is undefined in our system, when it tries
to simulate a keypress for this keycode, a bad value is returned causing
the tests to fail.
For the tests Xt9/tgrabkey/Test - XtGrabKey 1,2,3 and
Xt9/tungrabky/Test - XtUngrabKey 1,2
There's a function called XtTMO_Proc which makes two calls to
XTestFakeKeyEvent (XtDisplay(labelw_msg),
XKeysymToKeycode(XtDisplay(labelw_msg), 0), True(or False),
CurrentTime)
the value it passes for the keycode is XKeysymToKeycode(XtDisplay(...), 0)
where the keysym being passed is 0. However for our systems, the keysym 0
is undefined. This causes XKeysymToKeycode to return 0. However this
keycode is not a valid keycode. On our systems, the minimum keycode is 17
and the max is 149. The server in responding to this event then generates
a bad value since 0 is not in the valid range of keycodes. This then
causes the Test to fail.
If the keysysm were replaced with a defined keysym, for example
32 (space bar), the test then passes.
For tests Xt9/tgrabkybd/Test - XtGrabKeyboard-1,
Xt9/tunkybord/Test - XtUngrabKeyboard-1, and
Xt12/tregraba/Test - XtRegisterGrabAction-1
the call to XTestFakeKeyEvent is in the function analyse_events again with
a keysym of 0. Like before if this is changed to 32, the tests pass.
Test Output
----------------------------------------------------------------
10|809 /tset/Xt9/tgrabkey/Test 03:48:00|TC Start, scenario ref 1644-0
15|809 3.1-lite 5|TCM Start
400|809 1 1 03:48:00|IC Start
200|809 1 03:48:00|TP Start
520|809 1 00003990 1 1|VSW5TESTSUITE PURPOSE 1
520|809 1 00003990 1 2|Assertion XtGrabKey-1.(A)
520|809 1 00003990 1 3|When the widget widget is realized a successful call to
520|809 1 00003990 1 4|void XtGrabKey(widget, keycode, modifiers, owner_events,
520|809 1 00003990 1 5|pointer_mode, keyboard_mode) shall call XGrabKey to
520|809 1 00003990 1 6|establish a passive key grab for the widget widget.
520|809 1 00004008 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|809 1 00004008 1 2|PREP: Disable autorepeat (which would break this test)
520|809 1 00004008 1 3|PREP: Set up the XtToolkitError handler
520|809 1 00004008 1 4|PREP: Set up widget tree of depth eight (8) return panedw widget
520|809 1 00004008 1 5|PREP: Create boxw1 widget in panedw widget
520|809 1 00004008 1 6|PREP: Get the label widget name
520|809 1 00004008 1 7|PREP: Create label: Xt Function: XtGrabKey in boxw1 widget
520|809 1 00004008 1 8|PREP: Create boxw2 widget in panedw widget
520|809 1 00004008 1 9|PREP: Set height and width of boxw2 widget
520|809 1 00004008 1 10|PREP: Create windows for widgets and map them
520|809 1 00004008 1 11|PREP: Establish passive grab with XtGrabKey
520|809 1 00004008 1 12|PREP: Send KeyRelease outside grab widget
520|809 1 00004008 1 13|ERROR: ************************************************
520|809 1 00004008 1 14|ERROR: XError invoking protocol request X_ShapeSelectInput
520|809 1 00004008 1 15|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|809 1 00004008 1 16|ERROR: Number of requests sent over the network connection since opened = 90
520|809 1 00004008 1 17|ERROR: ************************************************
220|809 1 1 03:48:01|FAIL
410|809 1 1 03:48:01|IC End
400|809 2 1 03:48:01|IC Start
200|809 2 03:48:01|TP Start
520|809 2 00003990 1 1|VSW5TESTSUITE PURPOSE 2
520|809 2 00003990 1 2|Assertion XtGrabKey-2.(A)
520|809 2 00003990 1 3|When the widget widget is not realized a successful call to
520|809 2 00003990 1 4|void XtGrabKey(widget, keycode, modifiers, owner_events
520|809 2 00003990 1 5|pointer_mode, keyboard_mode) shall cause XGrabKey to be
520|809 2 00003990 1 6|called to establish a passive key grab for the specified
520|809 2 00003990 1 7|widget when it is realized.
520|809 2 00004011 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|809 2 00004011 1 2|PREP: Disable autorepeat (which would break this test)
520|809 2 00004011 1 3|PREP: Set up the XtToolkitError handler
520|809 2 00004011 1 4|PREP: Set up widget tree of depth eight (8) return panedw widget
520|809 2 00004011 1 5|PREP: Create boxw1 widget in panedw widget
520|809 2 00004011 1 6|PREP: Get the label widget name
520|809 2 00004011 1 7|PREP: Create label: Xt Function: XtGrabKey in boxw1 widget
520|809 2 00004011 1 8|PREP: Create boxw2 widget in panedw widget
520|809 2 00004011 1 9|PREP: Set height and width of boxw2 widget
520|809 2 00004011 1 10|PREP: Establish passive grab with XtGrabKey
520|809 2 00004011 1 11|PREP: Create windows for widgets and map them
520|809 2 00004011 1 12|PREP: Send KeyRelease outside grab widget
520|809 2 00004011 1 13|ERROR: ************************************************
520|809 2 00004011 1 14|ERROR: XError invoking protocol request X_ShapeSelectInput
520|809 2 00004011 1 15|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|809 2 00004011 1 16|ERROR: Number of requests sent over the network connection since opened = 91
520|809 2 00004011 1 17|ERROR: ************************************************
220|809 2 1 03:48:02|FAIL
410|809 2 1 03:48:02|IC End
400|809 3 1 03:48:02|IC Start
200|809 3 03:48:02|TP Start
520|809 3 00003990 1 1|VSW5TESTSUITE PURPOSE 3
520|809 3 00003990 1 2|Assertion XtGrabKey-3.(A)
520|809 3 00003990 1 3|When the widget widget is realized a successful call to
520|809 3 00003990 1 4|void XtGrabKey(widget, keycode, modifiers, owner_events
520|809 3 00003990 1 5|pointer_mode, keyboard_mode) shall cause XGrabKey to be
520|809 3 00003990 1 6|called to establish a passive key grab for the specified
520|809 3 00003990 1 7|widget when the widget is next realized following an
520|809 3 00003990 1 8|unrealize action on the widget.
520|809 3 00004004 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|809 3 00004004 1 2|PREP: Disable autorepeat (which would break this test)
520|809 3 00004004 1 3|PREP: Set up the XtToolkitError handler
520|809 3 00004004 1 4|PREP: Set up widget tree of depth eight (8) return panedw widget
520|809 3 00004004 1 5|PREP: Create boxw1 widget in panedw widget
520|809 3 00004004 1 6|PREP: Get the label widget name
520|809 3 00004004 1 7|PREP: Create label: Xt Function: XtGrabKey in boxw1 widget
520|809 3 00004004 1 8|PREP: Create boxw2 widget in panedw widget
520|809 3 00004004 1 9|PREP: Set height and width of boxw2 widget
520|809 3 00004004 1 10|PREP: Create windows for widgets and map them
520|809 3 00004004 1 11|PREP: Establish passive grab with XtGrabKey
520|809 3 00004004 1 12|PREP: Unrealize grab widget
520|809 3 00004004 1 13|PREP: Realize grab widget
520|809 3 00004004 1 14|PREP: Send KeyRelease outside grab widget
520|809 3 00004004 1 15|ERROR: ************************************************
520|809 3 00004004 1 16|ERROR: XError invoking protocol request X_ShapeSelectInput
520|809 3 00004004 1 17|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|809 3 00004004 1 18|ERROR: Number of requests sent over the network connection since opened = 90
520|809 3 00004004 1 19|ERROR: ************************************************
220|809 3 1 03:48:04|FAIL
410|809 3 1 03:48:04|IC End
-----------------------------------------------------------------
-----------------------------------------------------------------
10|810 /tset/Xt9/tungrabky/Test 03:48:05|TC Start, scenario ref 1646-0
15|810 3.1-lite 2|TCM Start
400|810 1 1 03:48:05|IC Start
200|810 1 03:48:05|TP Start
520|810 1 00003997 1 1|VSW5TESTSUITE PURPOSE 1
520|810 1 00003997 1 2|Assertion XtUngrabKey-1.(A)
520|810 1 00003997 1 3|A successful call to void XtUngrabKey(widget, keycode,
520|810 1 00003997 1 4|modifiers) when the widget widget has a passive key grab
520|810 1 00003997 1 5|established for keycode and modifiers shall cancel the grab.
520|810 1 00004013 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|810 1 00004013 1 2|PREP: Set up the XtToolkitError handler
520|810 1 00004013 1 3|PREP: Set up widget tree of depth eight (8) return panedw widget
520|810 1 00004013 1 4|PREP: Create boxw1 widget in panedw widget
520|810 1 00004013 1 5|PREP: Get the label widget name
520|810 1 00004013 1 6|PREP: Create label: Xt Function: XtUngrabKey in boxw1 widget
520|810 1 00004013 1 7|PREP: Create boxw2 widget in panedw widget
520|810 1 00004013 1 8|PREP: Set height and width of boxw2 widget
520|810 1 00004013 1 9|PREP: Create windows for widgets and map them
520|810 1 00004013 1 10|PREP: Disable autorepeat (which would break this test)
520|810 1 00004013 1 11|PREP: Register passive grab on any key, any modifier
520|810 1 00004013 1 12|PREP: Release the grab
520|810 1 00004013 1 13|PREP: Send KeyRelease outside grab widget
520|810 1 00004013 1 14|ERROR: ************************************************
520|810 1 00004013 1 15|ERROR: XError invoking protocol request X_ShapeSelectInput
520|810 1 00004013 1 16|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|810 1 00004013 1 17|ERROR: Number of requests sent over the network connection since opened = 95
520|810 1 00004013 1 18|ERROR: ************************************************
220|810 1 1 03:48:06|FAIL
410|810 1 1 03:48:06|IC End
400|810 2 1 03:48:06|IC Start
200|810 2 03:48:06|TP Start
520|810 2 00003997 1 1|VSW5TESTSUITE PURPOSE 2
520|810 2 00003997 1 2|Assertion XtUngrabKey-2.(A)
520|810 2 00003997 1 3|A successful call to void XtUngrabKey(widget, keycode,
520|810 2 00003997 1 4|modifiers) when the widget widget is not realized and has a
520|810 2 00003997 1 5|deferred passive key grab established for keycode and
520|810 2 00003997 1 6|modifiers shall cancel the key grab.
520|810 2 00003998 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|810 2 00003998 1 2|PREP: Set up the XtToolkitError handler
520|810 2 00003998 1 3|PREP: Set up widget tree of depth eight (8) return panedw widget
520|810 2 00003998 1 4|PREP: Create boxw1 widget in panedw widget
520|810 2 00003998 1 5|PREP: Get the label widget name
520|810 2 00003998 1 6|PREP: Create label: Xt Function: XtUngrabKey in boxw1 widget
520|810 2 00003998 1 7|PREP: Create boxw2 widget in panedw widget
520|810 2 00003998 1 8|PREP: Set height and width of boxw2 widget
520|810 2 00003998 1 9|PREP: Create windows for widgets and map them
520|810 2 00003998 1 10|PREP: Disable autorepeat (which would break this test)
520|810 2 00003998 1 11|PREP: Unrealize widget
520|810 2 00003998 1 12|PREP: Register passive grab on any key, any modifier
520|810 2 00003998 1 13|PREP: Release the grab
520|810 2 00003998 1 14|PREP: Realize widget
520|810 2 00003998 1 15|PREP: Send KeyRelease outside grab widget
520|810 2 00003998 1 16|ERROR: ************************************************
520|810 2 00003998 1 17|ERROR: XError invoking protocol request X_ShapeSelectInput
520|810 2 00003998 1 18|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|810 2 00003998 1 19|ERROR: Number of requests sent over the network connection since opened = 96
520|810 2 00003998 1 20|ERROR: ************************************************
220|810 2 1 03:48:08|FAIL
410|810 2 1 03:48:08|IC End
-------------------------------------------------------------------
-------------------------------------------------------------------
10|811 /tset/Xt9/tgrabkybd/Test 03:48:08|TC Start, scenario ref 1648-0
15|811 3.1-lite 2|TCM Start
400|811 1 1 03:48:09|IC Start
200|811 1 03:48:09|TP Start
520|811 1 00004001 1 1|VSW5TESTSUITE PURPOSE 1
520|811 1 00004001 1 2|Assertion XtGrabKeyboard-1.(A)
520|811 1 00004001 1 3|When the widget widget is realized a successful call to int
520|811 1 00004001 1 4|XtGrabKeyboard(widget, owner_events, pointer_mode,
520|811 1 00004001 1 5|keyboard_mode, time) shall call XGrabKeyboard to make an
520|811 1 00004001 1 6|active grab of the keyboard for the specified widget.
520|811 1 00004017 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|811 1 00004017 1 2|PREP: Set up the XtToolkitError handler
520|811 1 00004017 1 3|PREP: Disable autorepeat (which would break this test)
520|811 1 00004017 1 4|PREP: Set up widget tree of depth eight (8) return panedw widget
520|811 1 00004017 1 5|PREP: Create boxw1 widget in panedw widget
520|811 1 00004017 1 6|PREP: Get the label widget name
520|811 1 00004017 1 7|PREP: Create label: Xt Function: XtGrabKeyboard in boxw1
widget
520|811 1 00004017 1 8|PREP: Create boxw2 widget in panedw widget
520|811 1 00004017 1 9|PREP: Set height and width of boxw2 widget
520|811 1 00004017 1 10|PREP: Create windows for widgets and map them
520|811 1 00004017 1 11|PREP: Grab Keyboard
520|811 1 00004017 1 12|PREP: Simulate user input
520|811 1 00004017 1 13|TEST: Analyze events
520|811 1 00004017 1 14|ERROR: ************************************************
520|811 1 00004017 1 15|ERROR: XError invoking protocol request X_ShapeSelectInput
520|811 1 00004017 1 16|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|811 1 00004017 1 17|ERROR: Number of requests sent over the network connection since opened = 95
520|811 1 00004017 1 18|ERROR: ************************************************
220|811 1 1 03:48:09|FAIL
410|811 1 1 03:48:09|IC End
--------------------------------------------------------------------
--------------------------------------------------------------------
10|812 /tset/Xt9/tunkybord/Test 03:48:11|TC Start, scenario ref 1650-0
15|812 3.1-lite 1|TCM Start
400|812 1 1 03:48:11|IC Start
200|812 1 03:48:11|TP Start
520|812 1 00003988 1 1|VSW5TESTSUITE PURPOSE 1
520|812 1 00003988 1 2|Assertion XtUngrabKeyboard-1.(A)
520|812 1 00003988 1 3|A successful call to void XtUngrabKeyboard(widget, time)
520|812 1 00003988 1 4|shall cancel the active keyboard grab for the widget widget.
520|812 1 00003667 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|812 1 00003667 1 2|PREP: Set up the XtToolkitError handler
520|812 1 00003667 1 3|PREP: Set up widget tree of depth eight (8) return panedw widget
520|812 1 00003667 1 4|PREP: Create boxw1 widget in panedw widget
520|812 1 00003667 1 5|PREP: Get the label widget name
520|812 1 00003667 1 6|PREP: Create label: Xt Function: XtUngrabKeyboard in boxw1 widget
520|812 1 00003667 1 7|PREP: Create boxw2 widget in panedw widget
520|812 1 00003667 1 8|PREP: Set height and width of boxw2 widget
520|812 1 00003667 1 9|PREP: Create windows for widgets and map them
520|812 1 00003667 1 10|TEST: Grab and ungrab keyboard
520|812 1 00003667 1 11|PREP: Simulate user input
520|812 1 00003667 1 12|ERROR: ************************************************
520|812 1 00003667 1 13|ERROR: XError invoking protocol request X_ShapeSelectInput
520|812 1 00003667 1 14|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|812 1 00003667 1 15|ERROR: Number of requests sent over the network connection since opened = 94
520|812 1 00003667 1 16|ERROR: ************************************************
520|812 1 00004018 2 1|TEST: Events were not grabbed
520|812 1 00004018 2 2|ERROR: Expected key press outside window count of 1, Received 0
520|812 1 00004018 2 3|ERROR: Expected key release outside window count of 1, Received 0
220|812 1 1 03:48:11|FAIL
410|812 1 1 03:48:11|IC End
--------------------------------------------------------------------
--------------------------------------------------------------------
10|922 /tset/Xt12/tregraba/Test 03:59:15|TC Start, scenario ref 1873-0
15|922 3.1-lite 11|TCM Start
400|922 1 1 03:59:15|IC Start
200|922 1 03:59:15|TP Start
520|922 1 00005148 1 1|VSW5TESTSUITE PURPOSE 1
520|922 1 00005148 1 2|Assertion XtRegisterGrabAction-1.(A)
520|922 1 00005148 1 3|After a successful call to void
520|922 1 00005148 1 4|XtRegisterGrabAction(action_proc, owner_events, event_mask,
520|922 1 00005148 1 5|pointer_mode, keyboard_mode) when a widget for the calling
520|922 1 00005148 1 6|process is realized and the procedure action_proc is present
520|922 1 00005148 1 7|in the translation table or the accelerator table of this
520|922 1 00005148 1 8|widget associated with a KeyPress event shall cause a
520|922 1 00005148 1 9|passive key grab to be registered for the widget window on
520|922 1 00005148 1 10|every KeyCode that maps to the event detail field in the
520|922 1 00005148 1 11|translation or the accelerator table.
520|922 1 00005177 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
520|922 1 00005177 1 2|PREP: Set up the XtToolkitError handler
520|922 1 00005177 1 3|PREP: Set up widget tree of depth eight (8) return panedw widget
520|922 1 00005177 1 4|PREP: Create boxw1 widget in panedw widget
520|922 1 00005177 1 5|PREP: Get the label widget name
520|922 1 00005177 1 6|PREP: Create label in boxw1 widget
520|922 1 00005177 1 7|PREP: Create boxw2 widget in panedw widget
520|922 1 00005177 1 8|PREP: Set height and width of boxw2 widget
520|922 1 00005177 1 9|PREP: Create label in boxw1 widget
520|922 1 00005177 1 10|PREP: Add action table
520|922 1 00005177 1 11|PREP: Parse translation table
520|922 1 00005177 1 12|PREP: Add new translations into boxw1 widget
520|922 1 00005177 1 13|TEST: Register ActionProc with XtRegisterGrabAction
520|922 1 00005177 1 14|TEST: Create windows for widgets and map them
520|922 1 00005177 1 15|TEST: Analyse user input
520|922 1 00005177 1 16|PREP: Send KeyPress outside grab widget
520|922 1 00005177 1 17|ERROR: ************************************************
520|922 1 00005177 1 18|ERROR: XError invoking protocol request X_ShapeSelectInput
520|922 1 00005177 1 19|ERROR: The error was: BadValue (integer parameter out of range for operation)
520|922 1 00005177 1 20|ERROR: Number of requests sent over the network connection since opened = 169
520|922 1 00005177 1 21|ERROR: ************************************************
220|922 1 1 03:59:16|FAIL
410|922 1 1 03:59:16|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 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 1791
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority