IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 10, 2004, 3:19:06 PM (22 years ago)
Author:
desonia
Message:

fixes so that psList test passes now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psList.c

    r2681 r2698  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-10 02:50:16 $
     8 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-12-11 01:19:06 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    981981
    982982    printf("original list = [");
    983     psListIteratorSet(iter,PS_LIST_HEAD);
     983    iter = psListIteratorAlloc(list,PS_LIST_HEAD);
    984984    while( (uValue=psListGetNext(iter)) != NULL ) {
    985985        printf(" %d",*uValue);
     
    999999    psU32* prevUValue = psListGetNext(iter);
    10001000    while( (uValue=psListGetNext(iter)) != NULL ) {
    1001         if (*prevUValue < *uValue) {
     1001        if (*prevUValue > *uValue) {
    10021002            psError(PS_ERR_UNKNOWN, true,"Hey, the list wasn't sorted!?");
    10031003            return 3;
Note: See TracChangeset for help on using the changeset viewer.