Changeset 848
- Timestamp:
- Jun 3, 2004, 4:08:42 PM (22 years ago)
- Location:
- trunk/psLib/test/sysUtils
- Files:
-
- 2 edited
-
tst_psMemory.c (modified) (2 diffs)
-
verified/tst_psMemory.stderr (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psMemory.c
r846 r848 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-06-04 0 1:56:51$8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-04 02:08:42 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 168 168 cb = psMemExhaustedCallbackSet(TPOutOfMemoryExhaustedCallback); 169 169 170 mem1 = (int*) psAlloc(INT_MAX); 171 mem2 = (int*) psAlloc(INT_MAX); 172 mem3 = (int*) psAlloc(INT_MAX); 173 mem4 = (int*) psAlloc(INT_MAX); 170 mem1 = (int*) psAlloc(UINT_MAX-1000); 174 171 175 172 psMemExhaustedCallbackSet(cb); -
trunk/psLib/test/sysUtils/verified/tst_psMemory.stderr
r846 r848 17 17 <DATE> <TIME> <HOST> |I|TPOutOfMemory |Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback. 18 18 <DATE> <TIME> <HOST> |I|TPOutOfMemoryExhaustedCallback|Custom MemExhaustedCallback was invoked. 19 <DATE> <TIME> <HOST> |A|p_psAlloc |Failed to allocate 2147483647bytes at tst_psMemory.c:17019 <DATE> <TIME> <HOST> |A|p_psAlloc |Failed to allocate 4294966295 bytes at tst_psMemory.c:170 20 20 21 21 ---> TESTPOINT PASSED (psMemory{450-TPOutOfMemory} | tst_psMemory.c) … … 59 59 <DATE> <TIME> <HOST> |I|TPcheckLeaks |following psMemCheckLeaks call should produce one instance. 60 60 file:line ID 61 tst_psMemory.c:33 3161 tst_psMemory.c:330 1 62 62 <DATE> <TIME> <HOST> |I|TPcheckLeaks |Testing psMemCheckLeaks again with a different leak location 63 63 <DATE> <TIME> <HOST> |I|TPcheckLeaks |following psMemCheckLeaks call should produce one error. 64 64 file:line ID 65 tst_psMemory.c:36 31165 tst_psMemory.c:360 11 66 66 <DATE> <TIME> <HOST> |I|TPcheckLeaks |Testing psMemCheckLeaks again with multiple leak locations. 67 67 <DATE> <TIME> <HOST> |I|TPcheckLeaks |following psMemCheckLeaks call should produce two errors. 68 68 file:line ID 69 tst_psMemory.c:3 911670 tst_psMemory.c:3 911469 tst_psMemory.c:388 16 70 tst_psMemory.c:388 14 71 71 72 72 ---> TESTPOINT PASSED (psMemory{454-TPcheckLeaks} | tst_psMemory.c)
Note:
See TracChangeset
for help on using the changeset viewer.
