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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1817 Actions


    Problem Report Number 1817
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0894
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-11-11 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 ./vsw5/tset/Xt11/tvagtvals 2
    Problem Summary TSD4W.00132 This test may fail on all implementations due to improper arguments to XtVaTypedArg.
    Problem Text

    XtVaGetValues Test #2

    This test case incorrectly uses "XtVaTypedArg" in the context of
    a XtVaGetValues call. A core dump occurs when an attempt is made to
    copy the converted value to the address provided (2).

    The fix is as shown below:


    # diff -c Test.c Test.c.fixed
    *** Test.c.orig Tue Oct 29 14:15:08 1996
    --- Test.c Wed Oct 23 17:03:26 1996
    ***************
    *** 758,764 ****
    tet_infoline("PREP: Set resource values");
    XtVaSetValues(squarew, XavsNcurX, 10, XavsNcurY, 10 , (char *)NULL);
    tet_infoline("TEST: Get resource values");
    ! XtVaGetValues(squarew, XtVaTypedArg, XavsNcurX, XtRInt, (XtArgVal)2, sizeof(XtRInt), &cur_x, XavsNcurY, &cur_y, (char *)NULL);
    ^^^^^^^^^^^ ^^^^^^
    wrong
    tet_infoline("TEST: Resource values returned");
    check_dec(10, cur_x, XavsNcurX);
    check_dec(10, cur_y, XavsNcurY);
    --- 758,765 ----
    tet_infoline("PREP: Set resource values");
    XtVaSetValues(squarew, XavsNcurX, 10, XavsNcurY, 10 , (char *)NULL);
    tet_infoline("TEST: Get resource values");
    ! XtVaGetValues(squarew, XtVaTypedArg, XavsNcurX, XtRInt, (XtArgVal)&cur_x, sizeof(XtRInt), XavsNcurY, &cur_y, (char *)NULL);
    ^^^^^^^^^^^^^^^^
    correct
    tet_infoline("TEST: Resource values returned");
    check_dec(10, cur_x, XavsNcurX);
    check_dec(10, cur_y, XavsNcurY);


    Test Output
    unexpected signal 11 (SIGSEGV) received
    2 UNRESOLVED

    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