IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3287


Ignore:
Timestamp:
Feb 18, 2005, 12:27:42 PM (21 years ago)
Author:
evanalst
Message:

Added additional test case to increase code coverage.

Location:
trunk/psLib/test/collections
Files:
2 edited

Legend:

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

    r3285 r3287  
    1717 *  @author  Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    20  *  @date  $Date: 2005-02-18 21:37:15 $
     19 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     20 *  @date  $Date: 2005-02-18 22:27:42 $
    2121 *
    2222 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    176176    }
    177177
     178    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error");
     179    if(psBitSetClear(NULL,2) != NULL) {
     180        psError(PS_ERR_UNKNOWN,true,"psBitSetClear did not return NULL with NULL bitset");
     181        return 20;
     182    }
     183
     184    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error");
     185    if(psBitSetClear(bs,-3) != bs) {
     186        psError(PS_ERR_UNKNOWN,true,"psBitSetClear did not return original bitset");
     187        return 21;
     188    }
     189
    178190    psLogMsg("testBitSet01b",PS_LOG_INFO,"Following should be an error");
    179191    psErrorClear();
  • trunk/psLib/test/collections/verified/tst_psBitSet.stderr

    r3127 r3287  
    3030000000000000000000000000
    3131
     32<DATE><TIME>|<HOST>|I|testBitSet01b
     33    Following should be an error
     34<DATE><TIME>|<HOST>|E|psBitSetClear (FILE:LINENO)
     35    Can not operate on a NULL psBitSet.
     36<DATE><TIME>|<HOST>|I|testBitSet01b
     37    Following should be an error
     38<DATE><TIME>|<HOST>|E|psBitSetClear (FILE:LINENO)
     39    The specified bit position (-3) is invalid.  Position must be between 0 and 23.
    3240<DATE><TIME>|<HOST>|I|testBitSet01b
    3341    Following should be an error
Note: See TracChangeset for help on using the changeset viewer.