IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6303


Ignore:
Timestamp:
Feb 2, 2006, 10:59:36 AM (20 years ago)
Author:
desonia
Message:

fixed test to reflect new behaviour ps psDBDumpRows returning NULL if no
rows exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/db/tst_psDB.c

    r5216 r6303  
    99 *  @author Aaron Culliney, MHPCC
    1010 *
    11  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-10-01 02:22:22 $
     11 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-02-02 20:59:36 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    21402140    // Verify table contents
    21412141    ary = psDBDumpRows(dbh, table);
    2142     if (ary == NULL) {
    2143         psError(PS_ERR_UNKNOWN,true,"Did not expect return NULL for dump rows");
    2144         psDBDropTable(dbh,table);
    2145         psDBCleanup(dbh);
    2146         return 13;
    2147     }
    2148     if (ary->n != 0) {
     2142    if (ary != NULL && ary->n != 0) {
    21492143        psError(PS_ERR_UNKNOWN,true,"Remaining rows %d not as expected %d",
    21502144                ary->n,0);
Note: See TracChangeset for help on using the changeset viewer.