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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2164 Actions


    Problem Report Number 2164
    Submitter's Classification Specification problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0104
    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/XmInstallImage 4
    Specification Motif Toolkit API
    Location in Spec See Problem Text
    Problem Summary TIN4M.00011 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.

    Boolean
    _XmInstallImage(
    XImage *image,
    char *image_name,
    int hot_x,




    int hot_y)
    {
    /*
    * Error checking
    */
    if ( image == NULLimage_name == NULL )return (False);

    if (imageCache == NULL)
    InitializeImageCache();
    /*
    * only used for xternal images
    */
    (void)CreateImageCacheEntry(DtXTERNAL_IMAGE,
    image_name,
    image,
    hot_x, hot_y);
    return True;
    }

    There is no check made for a duplicate image name in the function
    _XmInstallImage().

    The following code should be added before the call to
    "CreateImageChangeEntry()".

    /*
    * Check for a duplicate "image_name".
    */
    if (_XmKeyToHashEntry( imageCache, image_name))
    return False;

    Test Output
    520|770 4 6166 1 1|VSM4TESTSUITE PURPOSE 4
    520|770 4 6166 1 2|A call to Boolean XmInstallImage(XImage *image, char
    520|770 4 6166 1 3|*image_name) when image is an image that has already
    520|770 4 6166 1 4|been installed in the cache shall return False.
    520|770 4 6166 1 5|TEST: Return value is False with a preinstalled
    bitmap
    (background).
    520|770 4 6166 1 6|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "background". Expected a value of False.
    520|770 4 6166 1 7|TEST: Return value is False with preinstalled bitmap
    (25_foreground).
    520|770 4 6166 1 8|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "25_foreground". Expected a value of False.
    520|770 4 6166 1 9|TEST: Return value is False with preinstalled bitmap
    (50_foreground).
    520|770 4 6166 1 10|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "50_foreground". Expected a value of False.
    520|770 4 6166 1 11|TEST: Return value is False with preinstalled bitmap




    (75_foreground).
    520|770 4 6166 1 12|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "75_foreground". Expected a value of False.
    520|770 4 6166 1 13|TEST: Return value is False with preinstalled bitmap

    (horizontal).
    520|770 4 6166 1 14|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "horizontal". Expected a value of False.
    520|770 4 6166 1 15|TEST: Return value is False with preinstalled bitmap

    (vertical).
    520|770 4 6166 1 16|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "vertical". Expected a value of False.
    520|770 4 6166 1 17|TEST: Return value is False with preinstalled bitmap

    (slant_right).
    520|770 4 6166 1 18|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "slant_right". Expected a value of False.
    520|770 4 6166 1 19|TEST: Return value is False with preinstalled bitmap

    (slant_left).
    520|770 4 6166 1 20|ERROR: XmInstallImage returned True to installation
    of
    preinstalled bitmap "slant_left". Expected a value of False.
    220|770 4 1 17:33:58|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