Changeset 3084
- Timestamp:
- Jan 24, 2005, 3:02:23 PM (21 years ago)
- Location:
- trunk/psLib/test/collections
- Files:
-
- 2 edited
-
tst_psList.c (modified) (3 diffs)
-
verified/tst_psList.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psList.c
r3083 r3084 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-01-25 0 0:13:12$8 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-01-25 01:02:23 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 942 942 } 943 943 944 // Attempt to get next with NULL iterator 945 if ( psListGetNext(NULL) != NULL ) { 946 psError(PS_ERR_UNKNOWN,true,"Did not return NULL when NULL iterator specified"); 947 return 24; 948 } 949 950 // Attempt to get previous with NULL iterator 951 if( psListGetPrevious(NULL) != NULL) { 952 psError(PS_ERR_UNKNOWN,true,"Did not return NULL when NULL iterator specified"); 953 return 25; 954 } 944 955 945 956 // 3. set list.cursor to list.tail if where=PS_LIST_TAIL … … 993 1004 psError(PS_ERR_UNKNOWN, true,"psListGetPrevious moved cursor beyond head."); 994 1005 return 15; 1006 } 1007 if (psListGetNext(iter) != NULL) { 1008 psError(PS_ERR_UNKNOWN,true,"psListGetNext should return NULL when above head"); 1009 return 22; 1010 } 1011 if (*(psS32*)psListGetNext(iter) != 0 ) { 1012 psError(PS_ERR_UNKNOWN,true,"psListGetNext didn't move cursor to next."); 1013 return 23; 995 1014 } 996 1015 -
trunk/psLib/test/collections/verified/tst_psList.stderr
r3083 r3084 96 96 <DATE><TIME>|<HOST>|I|testListIterator 97 97 psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location 98 <DATE><TIME>|<HOST>|W|psListGetPrevious 99 Attempt to get previous with itertator cursor NULL and offEnd false 98 100 99 101 ---> TESTPOINT PASSED (psList{psListIterator} | tst_psList.c)
Note:
See TracChangeset
for help on using the changeset viewer.
