|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1795 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1795.
Report 1795 Actions
Problem Report Number 1795 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0872 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-07-01 08:00 Product Standard Window System Application Interface V2 Certification Program The Open Brand certification program Test Suite VSW version 5.0.1 Test Identification Xt13/XtMalloc 1 Problem Summary TSD4W.00154 These tests may fail as they allocate all available memory and then use TET calls which want to do a malloc. Problem Text
Each of the above tests (XtMalloc-1,2 XtRealloc-3,4,6 XtFree-1)
fails in the same way ...
The tests check the max. amount of memory available
max_limit = mem_limit();
Subsequently each test allocates max_limit bytes.
Having checked whatever needs to be checked each test
proceeds to attempt to free the allocated storage ...
tet_infoline("CLEANUP: Free memory");
XtFree(ptr);
Unfortunately, tet_infoline tries to allocate some storage
(see tet_bufchk()) even though we've used it all up as
part of the test.
The tests pass if the tet_infoline() calls before XtFree()
are removed!Test Output
SECTION: Xt13
TEST CASE: XtMalloc
Assertion XtMalloc-1.(A)
A successful call to char *XtMalloc(size) shall return a
pointer to a block of storage of at least size bytes.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
PREP: Determine largest malloc
TEST: Allocate memory
TCM Error during exec of file /tset/Xt13/tmalloc/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 45
TCM Error during exec of file /tset/Xt13/tmalloc/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "C
LEANUP: Free memory"
Assertion XtMalloc-2.(A)
When there is insufficient memory to allocate the requested
block a call to char *XtMalloc(size) shall issue an
allocError error and return NULL.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
PREP: Set up toolkit handler for XtMalloc failure
PREP: Determine largest malloc
PREP: Allocate memory
TCM Error during exec of file /tset/Xt13/tmalloc/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 71
TCM Error during exec of file /tset/Xt13/tmalloc/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "T
EST: Over the limit XtMalloc calls XtErrorMsg"
TEST CASE: XtRealloc
Assertion XtRealloc-3.(A)
When there is insufficient memory to allocate the requested
block a call to char *XtRealloc(ptr, num) shall issue an
allocError error and return NULL.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
PREP: Set up toolkit handler for XtRealloc failure
PREP: Determine largest realloc
TEST: Allocate memory
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 75
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "T
EST: Over the limit XtRealloc calls error handler"
Assertion XtRealloc-4.(A)
When ptr is NULL a call to char *XtRealloc(ptr, num) shall
allocate new storage and not copy any data into it.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
PREP: Determine largest realloc
TEST: Allocate memory
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 45
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "C
LEANUP: Free memory"
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
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 73
TCM Error during exec of file /tset/Xt13/trealloc/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "T
EST: Call XtRealloc for memory, setting num = 0"
TEST CASE: XtFree
Assertion XtFree-1.(A)
When ptr points to a block of storage allocated by a prior
call to XtMalloc, XtCalloc or XtRealloc a successful call to
void XtFree(ptr) shall free the specified block.
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
TCM Error during exec of file /tset/Xt13/tfree/Test
system 0, errno = 11 (EAGAIN): (bufchk.c, 89): can't grow data buffer, wanted 42
TCM Error during exec of file /tset/Xt13/tfree/Test
system 0, reply code = ER_ERR: tet_infoline(): can't send info line to XRESD: "T
EST: Free memory"Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This strikes us a situation where TET is being needless intrusive into
the operation of a test. However the tests can be simply redesigned to
work around this without impacting their testing of the assertions. We thus
recommend a Test Suite Deficiency waiver be granted.
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:
- View Report 1795
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority