IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3289


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

Updated test case to increase code coverage for psBitSetOp.

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

Legend:

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

    r3288 r3289  
    1717 *  @author  Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
    20  *  @date  $Date: 2005-02-18 22:32:49 $
     19 *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
     20 *  @date  $Date: 2005-02-18 22:46:50 $
    2121 *
    2222 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    660660
    661661
     662    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     663    if(psBitSetOp(outbs,NULL,"AND",bs2) != NULL) {
     664        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL input 1 bit set");
     665        return 40;
     666    }
     667    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     668    if(psBitSetOp(outbs,bs1,NULL,bs2) != NULL) {
     669        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL operator");
     670        return 41;
     671    }
     672    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error");
     673    if(psBitSetOp(outbs,bs1,"AND",NULL) != NULL)  {
     674        psError(PS_ERR_UNKNOWN,true,"psBitSetOp did not return NULL with NULL input 2 bit set");
     675        return 42;
     676    }
     677
    662678    psFree(bs1);
    663679    psFree(bs2);
  • trunk/psLib/test/collections/verified/tst_psBitSet.stderr

    r3288 r3289  
    9595<DATE><TIME>|<HOST>|E|psBitSetOp (FILE:LINENO)
    9696    Specified operator, FOO, is invalid.  Valid operators are AND, OR, and XOR.
     97<DATE><TIME>|<HOST>|I|testBitSet06
     98    Following should generate an error
     99<DATE><TIME>|<HOST>|E|psBitSetOp (FILE:LINENO)
     100    First psBitSet operand can not be NULL.
     101<DATE><TIME>|<HOST>|I|testBitSet06
     102    Following should generate an error
     103<DATE><TIME>|<HOST>|E|psBitSetOp (FILE:LINENO)
     104    Specified operator is NULL.  Must specify desired operator.
     105<DATE><TIME>|<HOST>|I|testBitSet06
     106    Following should generate an error
     107<DATE><TIME>|<HOST>|E|psBitSetOp (FILE:LINENO)
     108    Second psBitSet operand can not be NULL.
    97109
    98110---> TESTPOINT PASSED (psBitSet{psBitSetOp} | tst_psBitSet.c)
Note: See TracChangeset for help on using the changeset viewer.