Report 2168 Actions
Problem Report Number |
2168 |
Submitter's Classification |
Specification problem |
State |
Resolved |
Resolution |
Temporary Interpretation (TIN) |
Problem Resolution ID |
TIN.X.0108 |
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/XmClipboardInquireLength 1 |
Specification |
Motif Toolkit API |
Location in Spec |
See Problem Text |
Problem Summary |
TIN4M.00015 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 XmClipboardInquireLength( Display *display, /* Display id of application inquiring */ Window window, char *format, /* Name string for data format */ unsigned long *length )/* Receives length of the data in that format */ { . if ( _XmWeOwnSelection( display, header ) ) { /* retrieve the next paste item */ matchformat = _XmClipboardFindFormat(display, header, format, (itemId) NULL, 0, &maxname,
&count, &loc_matchlength);
/* return the length */ if ( matchformat != 0 ) { . } } . return ClipboardSuccess; }
There is no "else" part to the "if ( matchformat != 0 )" in XmClipboardInquireLength().
There should be an "else return ClipboardNoData;".
|
Test Output |
520|431 1 4196 1 1|VSM4TESTSUITE PURPOSE 1 520|431 1 4196 1 2|A call to int XmClipboardInquireLength(Display 520|431 1 4196 1 3|*display, Window window, char *format_name, unsigned 520|431 1 4196 1 4|long *length) shall set length to the length of the 520|431 1 4196 1 5|data stored under the format name format_name in the 520|431 1 4196 1 6|clipboard and return ClipboardSuccess. 520|431 1 4196 1 7|TEST: Inquire length for a copy by name data item 520|431 1 4196 1 8|TEST: Withdraw the data item passed by name 520|431 1 4196 1 9|-ERROR: Incorrect status returned. Expected "ClipboardNoData" observed "Clipboard Success" 520|431 1 4196 1 10|TEST: Check length for a data item with two formats 220|431 1 1 17:16:54|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:
|