Changeset 3083 for trunk/psLib/test/collections/tst_psList.c
- Timestamp:
- Jan 24, 2005, 2:13:12 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psList.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psList.c
r3066 r3083 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-01-2 0 01:48:38$8 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-01-25 00:13:12 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 936 936 937 937 // 1. output error message and do nothing if iterator=NULL 938 psLogMsg(__func__,PS_LOG_INFO,"Following should error with "939 "'Unexpected null pointer'");940 938 psListIteratorSet(NULL,PS_LIST_HEAD); 941 939 if (psListIteratorSet(NULL,PS_LIST_HEAD)) { … … 1002 1000 return 16; 1003 1001 } 1004 if ( psListGetNext(iter) != NULL) {1002 if ((psListGetNext(iter) != NULL) || (!iter->offEnd)) { 1005 1003 psError(PS_ERR_UNKNOWN, true,"psListGetNext moved cursor beyond tail."); 1006 1004 return 17; 1005 } 1006 if(psListGetPrevious(iter) != NULL) { 1007 psError(PS_ERR_UNKNOWN,true,"psListGetPrevious did not return NULL when offEnd is true"); 1008 return 18; 1009 } 1010 if(iter->offEnd) { 1011 psError(PS_ERR_UNKNOWN,true,"psListGetPrevious did not move back onto the list."); 1012 return 19; 1013 } 1014 if(*(psS32*)psListGetPrevious(iter) != 14) { 1015 psError(PS_ERR_UNKNOWN,true,"psListGetPrevious did not return correct value of tail."); 1016 return 20; 1007 1017 } 1008 1018
Note:
See TracChangeset
for help on using the changeset viewer.
