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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2165 Actions


    Problem Report Number 2165
    Submitter's Classification Specification problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0105
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-03-26 08:00
    Product Standard Motif Toolkit
    Certification Program The Open Brand certification program
    Test Suite VSM version 4.0.0
    Test Identification functions/XmScrolledWindowSetAreas 1,2,3
    Specification Motif Toolkit API
    Location in Spec See Problem Text
    Problem Summary TIN4M.00012 The reference implementation (i.e. The Motif code provided by TOG) being tested is not in line with the standard specification for this Motif function as defined in the "OSF/Motif Programmer's Refere...
    Problem Text
    The reference implementation (i.e. The Motif code provided by TOG) being

    tested is not in line with the standard specification for this Motif
    function as defined in the "OSF/Motif Programmer's Reference (Rel.
    1.2)".
    The assertion being tested is in line with the standard specification
    but the behavior of this function is not in line with the specification.

    Either the Motif reference implementation is at fault, or the
    Specification needs to be aligned with the reference implemenation. It
    is our understanding that Motif 1.2.X is no longer supported by TOG,
    hence we request this waiver be granted a Permanent Interpretation.

    Please see the sample code below for an explanation as to why the
    reference implementation is failing the test.




    void
    XmScrolledWindowSetAreas(
    Widget w,
    Widget hscroll,
    Widget vscroll,
    Widget wregion )
    {
    .
    if (sw->swindow.WorkWindow != wregion)
    {
    .
    sw->swindow.WorkWindow = wregion;
    }
    if (sw->swindow.ScrollPolicy != XmAUTOMATIC)
    {
    .
    sw->swindow.hScrollBar = (XmScrollBarWidget) hscroll;
    sw->swindow.vScrollBar = (XmScrollBarWidget) vscroll;
    .
    }
    .
    }

    The function XmScrolledWindowSetAreas() is not checking if the wregion,
    hscroll,
    and vscroll parameters are NULL. It is copying the value of the
    parameter to its
    internal data structure without checking if the parameter is NULL.

    Test Output
    520|980 1 7346 1 1|VSM4TESTSUITE PURPOSE 1
    520|980 1 7346 1 2|A call to void XmScrolledWindowSetAreas(Widget
    widget,
    520|980 1 7346 1 3|Widget horizontal_scrollbar, Widget
    520|980 1 7346 1 4|vertical_scrollbar, Widget work_region) when
    520|980 1 7346 1 5|horizontal_scrollbar is non-NULL shall add the
    520|980 1 7346 1 6|scrollbar specified to the ScrolledWindow widget
    520|980 1 7346 1 7|specified by widget.
    520|980 1 7346 1 8|TEST: Horizontal scroll bar is added.
    520|980 1 7346 1 9|TEST: Horizontal scroll bar can be changed.
    520|980 1 7346 1 10|TEST: NULL value for horizontal scrollbar does not
    alter
    scrollbar.
    520|980 1 7346 1 11|ERROR: Incorrect horizontal scroll bar ID.
    Expected: 4033c480 Observed: 40341740
    220|980 1 1 17:51:38|FAIL
    410|980 1 1 17:51:38|IC End

    400|980 2 1 17:51:38|IC Start
    200|980 2 17:51:38|TP Start
    520|980 2 7346 1 1|VSM4TESTSUITE PURPOSE 2
    520|980 2 7346 1 2|A call to void XmScrolledWindowSetAreas(Widget




    widget,
    520|980 2 7346 1 3|Widget horizontal_scrollbar, Widget
    520|980 2 7346 1 4|vertical_scrollbar, Widget work_region) when
    520|980 2 7346 1 5|vertical_scrollbar is non-NULL shall add the
    scrollbar
    520|980 2 7346 1 6|specified to the ScrolledWindow widget specified by
    widget.
    520|980 2 7346 1 7|TEST: Vertical scroll bar is added.
    520|980 2 7346 1 8|TEST: Vertical scroll bar can be changed.
    520|980 2 7346 1 9|TEST: NULL value for vertical scrollbar does not
    alter
    scrollbar.
    520|980 2 7346 1 10|ERROR: Incorrect vertical scroll bar ID.
    Expected: 40341d80 Observed: 4033be40
    220|980 2 1 17:51:38|FAIL
    410|980 2 1 17:51:39|IC End

    400|980 3 1 17:51:39|IC Start
    200|980 3 17:51:39|TP Start
    520|980 3 7346 1 1|VSM4TESTSUITE PURPOSE 3
    520|980 3 7346 1 2|A call to void XmScrolledWindowSetAreas(Widget
    widget,
    520|980 3 7346 1 3|Widget horizontal_scrollbar, Widget
    520|980 3 7346 1 4|vertical_scrollbar, Widget work_region) when
    520|980 3 7346 1 5|work_region is non-NULL shall add the work region
    520|980 3 7346 1 6|specified to the ScrolledWindow widget specified by
    widget.
    520|980 3 7346 1 7|TEST: Work region is added.
    520|980 3 7346 1 8|TEST: Work region can be changed.
    520|980 3 7346 1 9|TEST: NULL value for work region does not alter
    existing work
    region.
    520|980 3 7346 1 10|ERROR: Incorrect work region ID. Expected: 4033b800
    Observed: 4033bd00
    220|980 3 1 17:51:39|FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    A non-alignment between the reference code and its specification is
    under investigation. Thus it is recommended that a Temporary
    Interpretation be granted for this test while it remains subject to review.
    If a change to the specification results from the conclusion of this
    investigation, then this Temporary Interpretation will be converted
    to a Permanent Waiver. Otherwise this Temporary Interpretation will




    be converted to a Temporary Waiver (Minor System Fault).


    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Temporary Interpretation (TIN)
    Review Conclusion
    A Temporary Interpretation is granted.

    Applicability: VSM4.0.0 only.


    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority