Report 2167 Actions
Problem Report Number |
2167 |
Submitter's Classification |
Specification problem |
State |
Resolved |
Resolution |
Temporary Interpretation (TIN) |
Problem Resolution ID |
TIN.X.0107 |
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 3 |
Specification |
Motif Toolkit API |
Location in Spec |
See Problem Text |
Problem Summary |
TIN4M.00014 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 3 4289 1 1|VSM4TESTSUITE PURPOSE 3 520|428 3 4289 1 2|A call to int 520|428 3 4289 1 3|XmClipboardInquireFormat(Display *display, Window 520|428 3 4289 1 4|window, int index, XtPointer format_name_buf, unsigned 520|428 3 4289 1 5|long buffer_len, unsigned long *copied_len) when no 520|428 3 4289 1 6|data corresponding to the format requested is found on 520|428 3 4289 1 7|the clipboard shall return ClipboardNoData. 520|428 3 4289 1 8|TEST: Retrieve format name for a non-existent format 520|428 3 4289 1 9|=C9ERROR: InquireFormat returned bad status - ClipboardSuccess 220|428 3 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 specification 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.
Applicability: VSM4.0.0 only.
|
Problem Reporting System Options:
|