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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1800 Actions


    Problem Report Number 1800
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0877
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-04-15 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 Xt11/XtCvtStringToDisplay 1,2,3
    Problem Summary TSD4W.00149 These tests will fail if the DISPLAY environment variable is not set to the same value as the XT_DISPLAY configuration variable.
    Problem Text
    We believe this failure is due to a fault in the test suite, and request that
    a waiver be granted.

    It is not checking the XT_DISPLAY configuration variable. Notice in the
    sample code below that "*dispstr" is set to an empty string. Later "dispstr" is
    assigned to "fromVal.addr" which is passed to XtCvtStringToDisplay().
    The function XtCvtStringToDisplay() calls the function
    XOpenDisplay((char *)fromVal->addr). Since "fromVal->addr" is an empty
    string then XOpenDisplay() uses the "DISPLAY" environment variable. Unless the
    DISPLAY variable has been set the XOpenDisplay() function will fail causing the
    test to fail.

    A call to getenv("DISPLAY") just before XtCvtStringToDisplay() is called
    reveals that the DISPLAY variable has not been set.

    static void t001(){
    .
    .
    .
    /*
    * NOTICE THE DISPLAY STRING IS EMPTY. THE VALUE OF THE
    * CONFIGURATION VARIABLE "XT_DISPLAY" IS NOT USED.
    */
    char *dispstr = ""
    .
    .
    .
    fromVal.addr = dispstr;
    .
    .
    .
    /*
    * "XtCvtStringToDisplay()" CALLS "XOpenDisplay((char
    *)fromVal->addr)".
    * SINCE THE DISPLAY STRING IS EMPTY "XOpenDisplay()" LOOKS AT THE
    VALUE
    * OF THE "DISPLAY" ENVIRONMENT VARIABLE. UNLESS "DISPLAY" HAS
    * BEEN SET "XOpenDisplay()" WILL FAIL.
    */
    status = XtCvtStringToDisplay(display,
    &args[0],
    &num_args,
    &fromVal,
    &toVal,
    closure_ret);
    .
    .
    .
    }
    Test Output
    520|1 1 4606 1 1|VSW5TESTSUITE PURPOSE 1
    520|1 1 4606 1 2|Assertion XtCvtStringToDisplay-1.(C)
    520|1 1 4606 1 3|If the implementation is X11R5 or later: A successful call
    520|1 1 4606 1 4|to Boolean XtCvtStringToDisplay(display, args, num_args,
    520|1 1 4606 1 5|from, to, converter_data) when to->addr is not NULL and
    520|1 1 4606 1 6|to->size is large enough to store an XtRDisplay type shall
    520|1 1 4606 1 7|convert the string specified in from to an XtRDisplay type,
    520|1 1 4606 1 8|store it at the location specified by to->addr, set to->size
    520|1 1 4606 1 9|to the actual size of the converted data, and return True.
    520|1 1 4597 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
    520|1 1 4597 1 2|PREP: Create windows for widgets and map them
    520|1 1 4597 1 3|PREP: Get display
    520|1 1 4597 1 4|PREP: Set up required conversion args
    520|1 1 4597 1 5|TEST: Conversion succeeds
    520|1 1 4597 1 6|WARNING: ***********************************
    520|1 1 4597 1 7|WARNING: An Xt warning occured during a toolkit call:
    520|1 1 4597 1 8|WARNING: Cannot convert string "" to type Display
    520|1 1 4597 1 9|WARNING: ***********************************
    520|1 1 4597 1 10|ERROR: Expected XtCvtStringToDisplay return value of 1, Received 0
    220|1 1 1 09:16:17|FAIL

    520|1 2 4606 1 1|VSW5TESTSUITE PURPOSE 2
    520|1 2 4606 1 2|Assertion XtCvtStringToDisplay-2.(C)
    520|1 2 4606 1 3|If the implementation is X11R5 or later: A call to Boolean
    520|1 2 4606 1 4|XtCvtStringToDisplay(display, args, num_args, from, to,
    520|1 2 4606 1 5|converter_data) when to->addr is not NULL and to->size is
    520|1 2 4606 1 6|too small for an XtRDisplay type shall not perform a
    520|1 2 4606 1 7|conversion, set the to->size field to the number of bytes
    520|1 2 4606 1 8|required to store the converted data, and return False.
    520|1 2 4604 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
    520|1 2 4604 1 2|PREP: Create windows for widgets and map them
    520|1 2 4604 1 3|PREP: Get display
    520|1 2 4604 1 4|PREP: Set up required conversion args
    520|1 2 4604 1 5|TEST: Conversion fails
    520|1 2 4604 1 6|WARNING: **********************************
    520|1 2 4604 1 7|WARNING: An Xt warning occured during a toolkit call:
    520|1 2 4604 1 8|WARNING: Cannot convert string "" to type Display
    520|1 2 4604 1 9|WARNING: **********************************
    520|1 2 4604 1 10|TEST: to_size
    520|1 2 4604 1 11|ERROR: to_size not set correctly, expected 8, received 0
    220|1 2 1 09:16:19|FAIL

    520|1 3 4606 1 1|VSW5TESTSUITE PURPOSE 3
    520|1 3 4606 1 2|Assertion XtCvtStringToDisplay-3.(C)
    520|1 3 4606 1 3|If the implementation is X11R5 or later: A successful call
    520|1 3 4606 1 4|to Boolean XtCvtStringToDisplay(display, args, num_args,
    520|1 3 4606 1 5|from, to, converter_data) when to->addr is NULL shall
    520|1 3 4606 1 6|convert the string specified in from to an XtRDisplay type,
    520|1 3 4606 1 7|allocate space for the converted data, set to->addr to
    520|1 3 4606 1 8|specify the location of the data, set to->size to the size
    520|1 3 4606 1 9|of the coverted data, and return True.
    520|1 3 4459 1 1|PREP: Initialize toolkit, Open display and Create topLevel root widget
    520|1 3 4459 1 2|PREP: Create windows for widgets and map them
    520|1 3 4459 1 3|PREP: Get display
    520|1 3 4459 1 4|PREP: Set up required conversion args
    520|1 3 4459 1 5|TEST: Conversion succeeds
    520|1 3 4459 1 6|WARNING: ****************************************
    520|1 3 4459 1 7|WARNING: An Xt warning occured during a toolkit call:
    520|1 3 4459 1 8|WARNING: Cannot convert string "" to type Display
    520|1 3 4459 1 9|WARNING:
    ****************************************************************
    520|1 3 4459 1 10|ERROR: Expected XtCvtStringToDisplay return value of 1, Received 0
    520|1 3 4459 1 11|TEST: to->addr and to->size are set
    520|1 3 4459 1 12|ERROR: to->addr was not set
    520|1 3 4459 1 13|ERROR: to_size not set correctly, expected 8, received 0
    220|1 3 1 09:16:20|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 versions 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