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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2166 Actions


    Problem Report Number 2166
    Submitter's Classification Specification problem
    State Resolved
    Resolution Temporary Interpretation (TIN)
    Problem Resolution ID TIN.X.0106
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-03-25 08:00
    Product Standard Motif Toolkit
    Certification Program The Open Brand certification program
    Test Suite VSM version 4.0.0
    Test Identification functions/XmClipboardInquireFormat 1
    Specification Motif Toolkit API
    Location in Spec See Problem Text
    Problem Summary TIN4M.00013 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.

    int
    XmClipboardInquireFormat(
    Display *display, /* Display id of application inquiring
    */
    Window window,
    int n, /* Which format for this data item? */
    XtPointer buffer, /* Address of buffer to receive format
    name */
    unsigned long bufferlength, /* Length of the buffer */
    unsigned long *outlength ) /* Receives length copied to name
    buffer */
    {
    .
    status =3D ClipboardSuccess;
    .
    if ( _XmWeOwnSelection( display, header ) )
    {
    /* retrieve the matching format
    */
    matchformat =3D _XmClipboardFindFormat(display, header, 0,
    (itemId) NULL, n,
    &maxname, &count,
    &loc_matchlength );

    if ( matchformat !=3D 0 )
    {
    ptr =3D XmGetAtomName( display, matchformat->formatNameAtom )=
    ;

    _XmClipboardFreeAlloc( (char *) matchformat );
    }
    }




    .
    return status;
    }

    There is no "else" part to the "if ( matchformat !=3D 0 )" in
    XmClipboardInquireFormat().

    There should be an "else status =3D ClipboardNoData;". Otherwise notice
    that
    "status" remains as "ClipboardSuccess".

    Test Output
    520|428 1 4289 1 1|VSM4TESTSUITE PURPOSE 1
    520|428 1 4289 1 2|A call to int XmClipboardInquireFormat(Display
    520|428 1 4289 1 3|*display, Window window, int index, XtPointer
    520|428 1 4289 1 4|format_name_buf, unsigned long buffer_len, unsigned
    520|428 1 4289 1 5|long *copied_len) shall copy the format name for the
    520|428 1 4289 1 6|data name in the clipboard in format_name argument,
    520|428 1 4289 1 7|store the length of the format name string in
    520|428 1 4289 1 8|copied_len and return ClipboardSuccess.
    520|428 1 4289 1 9|TEST: Copy an item to the clipboard and verify format

    information
    520|428 1 4289 1 10|TEST: Withdraw the data item passed by name then
    inquire on
    that format
    520|428 1 4289 1 11|=C9ERROR: Incorrect status returned. Expected
    "ClipboardNoData" observed "ClipboardSuccess"
    520|428 1 4289 1 12|TEST: Check format information for a data item with
    two
    formats
    220|428 1 1 17:16:41|FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree with the applicant and recommend that a TIN be granted
    on the basis of a misalignment between the spec and the reference
    implementation.


    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    "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.


    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority