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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1749 Actions


    Problem Report Number 1749
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0532
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    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/Xt13/trealloc 006
    Problem Summary PG4W.00051 This request recommends this test be removed.
    Problem Text
    This assertion is testing for Non-XPG4 requirements. From above the assertion
    is the following:

    Assertion XtRealloc-6.(A)
    When num is zero and ptr is not NULL a call to char
    *XtRealloc(ptr, num) shall free the object pointed to by
    ptr.


    The XtRealloc description on page 193 of the X Toolkit Intrinsics
    specification makes no mention of behavior of XtRealloc() when
    num is zero. On page 194 it specifically states the following:
    "To free an allocated block of storage, use XtFree."

    This test should be removed from the Test Suite.

    Test Output
    TEST CASE: XtRealloc

    TEST PURPOSE #6
    Assertion XtRealloc-6.(A)
    When num is zero and ptr is not NULL a call to char
    *XtRealloc(ptr, num) shall free the object pointed to by
    ptr.
    PREP: Initialize toolkit, Open display and Create topLevel root widget
    PREP: Create windows for widgets and map them
    PREP: Determine largest malloc
    PREP: Allocate memory
    TEST: Call XtRealloc for memory, setting num = 0
    TEST: Again attempt the XtMalloc
    ERROR: ****************************************************************
    ERROR: An Xt error occured during a toolkit call:
    ERROR: Cannot perform malloc
    ERROR: ****************************************************************
    6 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    Page 205 of the current specification states "These functions are
    completely compatible with their standard C language runtime
    counterparts ... with the following added functionality."

    As both ISO C and XSH specify for realloc() the behavior tested here
    we believe the test is a necessary element of the test suite.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority