Changeset 3737 for trunk/psLib/test/collections
- Timestamp:
- Apr 21, 2005, 11:18:23 AM (21 years ago)
- Location:
- trunk/psLib/test/collections
- Files:
-
- 4 edited
-
tst_psVectorSort_01.c (modified) (2 diffs)
-
tst_psVectorSort_02.c (modified) (2 diffs)
-
verified/tst_psVectorSort_01.stderr (modified) (1 diff)
-
verified/tst_psVectorSort_02.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psVectorSort_01.c
r3682 r3737 7 7 * B) Sort input float vector into itself 8 8 * C) Attempt to sort vector with invalid type (i.e. PS_TYPE_BOOL) 9 * D) Sort input vector with zero items 9 * D) Sort input vector with zero items 10 10 * C) Free float vectors 11 11 * 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-04- 07 20:27:41$14 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-04-21 21:18:23 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 142 142 psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error messgae"); 143 143 tempVec = psVectorSort(out,in); 144 if(tempVec != out) {145 psError(PS_ERR_UNKNOWN,true,"Did not return the specified output vector");144 if(tempVec != NULL) { 145 psError(PS_ERR_UNKNOWN,true,"Did not return NULL on error or didn't error?"); 146 146 return 33; 147 147 } 148 psFree(out);149 148 printFooter(stdout,"psVectorSort","Invalid vector type",true); 150 149 -
trunk/psLib/test/collections/tst_psVectorSort_02.c
r3682 r3737 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-04- 07 20:27:41$16 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-04-21 21:18:23 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 155 155 psLogMsg(__func__,PS_LOG_INFO,"Following should generate two error messages(psVectorSort,psVectorSortIndex)"); 156 156 out = psVectorSortIndex(out,in); 157 if( out != tempVect) {158 psError(PS_ERR_UNKNOWN,true,"Did not return the same output vector");157 if( out != NULL) { 158 psError(PS_ERR_UNKNOWN,true,"Did not return NULL on error or didn't error?"); 159 159 return 119; 160 160 } 161 161 in->type.type = PS_TYPE_U8; 162 162 psFree(in); 163 psFree(out);164 163 printFooter(stdout,"psVectorSortIndex","Attempt to sort with invalid type",true); 165 164 -
trunk/psLib/test/collections/verified/tst_psVectorSort_01.stderr
r3127 r3737 2 2 Following should generate an error messgae 3 3 <DATE><TIME>|<HOST>|E|psVectorSort (FILE:LINENO) 4 Input psVector is an unsupported type ( 4865).4 Input psVector is an unsupported type (0x1301). -
trunk/psLib/test/collections/verified/tst_psVectorSort_02.stderr
r3127 r3737 5 5 <DATE><TIME>|<HOST>|I|main 6 6 Following should generate two error messages(psVectorSort,psVectorSortIndex) 7 <DATE><TIME>|<HOST>|E|psVectorSort (FILE:LINENO)8 Input psVector is an unsupported type (4865).9 7 <DATE><TIME>|<HOST>|E|psVectorSortIndex (FILE:LINENO) 10 Input psVector is an unsupported type ( 4865).8 Input psVector is an unsupported type (0x1301).
Note:
See TracChangeset
for help on using the changeset viewer.
