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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1816 Actions


    Problem Report Number 1816
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0893
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-12-10 08:00
    Product Standard Window System Application Interface V2
    Certification Program The Open Brand certification program
    Test Suite VSW version 5.0.0
    Test Identification tset/Xt11/tcstshrt 004
    Problem Summary TSD4W.00133 This test may fail intermittently
    Problem Text
    snippets from the offending testcase.

    static void t004(){
    ...
    int bad = 1;
    ...
    fromVal.addr = (String)&bad;
    fromVal.size = 4;
    toVal.addr = (XtPointer) #
    toVal.size = sizeof(short);
    status = XtCvtStringToShort(display,
    &args[0],
    &num_args,
    &fromVal,
    &toVal,
    closure_ret);

    The testcase is trying to cast an int to a String which is defined
    as a char *. This will yield indeterminate results. I would suggest
    fixing the test case to something like:

    char bad[] = "This is not a short"

    Test Output
    TEST CASE: XtCvtStringToShort

    TEST PURPOSE #4
    Assertion XtCvtStringToShort-4.(A)
    If the implementation is X11R5 or later: A call to Boolean
    XtCvtStringToShort(display, args, num_args, from, to,
    closure_ret) when the conversion is not performed due to an
    improper value specified in from shall issue a warning
    message and return False.
    PREP: Initialize toolkit, Open display and Create topLevel root widget
    PREP: Set Warning Message Handler
    PREP: Create windows for widgets and map them
    PREP: Get display
    PREP: Set up required conversion args
    TEST: Conversion fails
    ERROR: Expected XtCvtStringToShort return value of 0, Received 1
    TEST: Warning message was generated
    ERROR: Expected warning handler called of 1, Received 0
    4 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority