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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1534 Actions


    Problem Report Number 1534
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0816
    Raised 1999-11-30 08:00
    Updated 2003-03-13 08:00
    Published 1999-12-08 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.4
    Test Identification base/strdup 2
    Problem Summary TSD4U.00277 ENOMEM errors reported by TET API calls.
    Problem Text
    These tests start with saving memory limits and then resetting
    it to a lower value. After this they use up all available memory
    with malloc calls. The test for strdup function then frees up
    some memory to see if strdup can make use of the space
    that was freed up and then verifies if a malloc for more
    memory than available will return ENOMEM.

    The test for valloc proceeds on the similar lines, first
    consuming
    all heap memory and then using valloc to try and allocate more,
    expecting a NULL pointer to be returned with errno set to ENOMEM.

    After all memory is consumed in both of these tests, TET API
    calls
    are used for writing messages to the journal. These calls need
    to allocate memory and fail as adequate memory is not available.
    The tests need to be changed so that the journalling is postponed
    until memory limits can be restored at the end, right after
    determining the disposition.
    Test Output
    TEST CASE: strdup
    The pointer returned by a call to char *strdup(const
    char *s1) shall be accepted by free().
    PREP: Set heap size
    PREP: Allocate remaining heap space

    TCM Error during exec of file /tset/CAPIbase/fstrdup/fstrdup2
    system 0, errno = 12 (ENOMEM): (bufchk.c, 92): can't grow data
    buffer, wanted 4

    TCM Error during exec of file /tset/CAPIbase/fstrdup/fstrdup2
    system 0, reply code = ER_ERR: tet_infoline(): can't send info
    line to XRESD: "PREP: Free
    some memory up for strdup()"

    TEST PURPOSE #2
    2 NORESULT

    TEST CASE: valloc
    If the Legacy Feature Group is supported or the
    implementation supports the valloc() function as defined
    in System Interfaces and Headers, Issue 5:
    ENOMEM in errno and return a null pointer on a call to
    void *valloc(size_t size) when storage space available
    is insufficient.
    PREP: Determine if the function valloc() is supported
    INFO: The implementation supports this function
    as defined in System Interfaces and Headers, Issue 5
    PREP: Lower the heap size
    PREP: Consume remaining heap space

    TCM Error during exec of file /tset/CAPIbase/fvalloc/fvalloc4
    system 0, errno = 12 (ENOMEM): (bufchk.c, 92): can't grow data
    buffer, wanted 4

    TCM Error during exec of file /tset/CAPIbase/fvalloc/fvalloc4
    system 0, reply code = ER_ERR: tet_infoline(): can't send info
    line to XRESD: "TEST: Call
    to valloc() returns a NULL pointer"

    TEST PURPOSE #4
    4 NORESULT

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a test suite fault.

    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