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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1819 Actions


    Problem Report Number 1819
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0896
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-02-21 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 Xlib16/rmcomdt 1
    Problem Summary TSD4W.00130 This test may fail on all implementations.
    Problem Text
    This test may fail on all implementations.

    The way the results of XrmGetResource are checked contains multiple
    errors. The Xrm calls that the test makes are:

    (void)XrmPutLineResource(&good, "test.Quark:happy\n");
    (void)XrmPutLineResource(&good2,"test.Quark:sad\n");
    XrmCombineDatabase(good, &good2, True);
    (void)XrmGetResource(good2, "test.Quark", "",
    &str_type_return, &value_return);

    The high-level intent of the code that follows the XrmGetResource call
    appears to be to verify that both "happy" and "sad" are returned.
    This is incorrect. Since the override parameter to XrmCombineDatabase
    is True, the value from database "good" should prevail, which is
    "happy".

    A second problem is that the code is looking at str_type_return. It
    should be looking at value_return. str_type_return should be "String"
    for the case above.

    A third problem is that the way the code is comparing string values is
    invalid. Instead of doing

    if (str != "happy")

    it should be something like

    if (!strcmp(str, "happy"))

    (What's *pointed to* should be compared, not the pointers themselves,
    which will never be equal since str comes from the heap and "happy" is
    static data.)
    Test Output
    Assertion XrmCombineDatabase-1.(C)
    If the implementation is X11R5 or later: A call to
    XrmCombineDatabase shall merge the contents of one database
    into another.
    PREP: Add data to two separate databases
    PREP: Call to XrmCombineDatabase to merge databases
    TEST: Databases are merged
    ERROR: XrmCombineDatabase failed to combine databases
    1 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