Changeset 2354
- Timestamp:
- Nov 12, 2004, 12:28:16 PM (22 years ago)
- Location:
- trunk/psLib/test/collections
- Files:
-
- 1 added
- 2 edited
-
tst_psArray.c (modified) (3 diffs)
-
verified/tst_psArray.stderr (added)
-
verified/tst_psArray.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psArray.c
r2273 r2354 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-11- 04 01:05:00$14 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-11-12 22:28:16 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 // Create array of pointers 38 38 testStruct *mySt[10]; 39 39 psArray *psArr1 = NULL; 40 40 41 41 // Test A - Create void pointer array … … 138 138 printFooter(stdout, "psArray", "Reallocate integer void pointer smaller", true); 139 139 140 // Test D1 - Reallocate with a null 141 printNegativeTestHeader(stdout,"psArray","Reallocate with a null array", 142 "Error message generator", 0 ); 143 psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message."); 144 psArr1 = psArrayRealloc(NULL,5); 145 if ( psArr1 != NULL ) { 146 printf("ERROR: Return is not NULL\n"); 147 } 148 printFooter(stdout,"psArray","Reallocate with a null array",true); 140 149 141 150 // Test E - Free void pointer array -
trunk/psLib/test/collections/verified/tst_psArray.stdout
r1227 r2354 62 62 /***************************** TESTPOINT ******************************************\ 63 63 * TestFile: tst_psArray.c * 64 * TestPoint: psArray{Reallocate with a null array} * 65 * TestType: Negative * 66 * ExpectedErrorText: Error message generator * 67 * ExpectedStatusValue: 0 * 68 \**********************************************************************************/ 69 70 71 ---> TESTPOINT PASSED (psArray{Reallocate with a null array} | tst_psArray.c) 72 73 /***************************** TESTPOINT ******************************************\ 74 * TestFile: tst_psArray.c * 64 75 * TestPoint: psArray{Free void pointer array} * 65 76 * TestType: Positive *
Note:
See TracChangeset
for help on using the changeset viewer.
