IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2005, 9:04:56 AM (21 years ago)
Author:
evanalst
Message:

Update test case for psDBDumpRows.

File:
1 edited

Legend:

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

    r4317 r4318  
    99 *  @author Aaron Culliney, MHPCC
    1010 *
    11  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-18 03:22:43 $
     11 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-06-20 19:04:56 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14421442        return 7;
    14431443    }
    1444 
    14451444    psFree(ary);
     1445
     1446    // Attempt to dump row with database NULL
     1447    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for NULL database");
     1448    if(psDBDumpRows(NULL,table)!=NULL) {
     1449        psError(PS_ERR_UNKNOWN,true,"Did not expect return non-NULL for NULL database specified");
     1450        psDBDropTable(dbh,table);
     1451        psDBCleanup(dbh);
     1452        return 8;
     1453    }
     1454
     1455    // Attempt to dump row with table NULL
     1456    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for NULL table");
     1457    if(psDBDumpRows(dbh,NULL)!=NULL) {
     1458        psError(PS_ERR_UNKNOWN,true,"Did not expect return non-NULL for NULL table specified");
     1459        psDBDropTable(dbh,table);
     1460        psDBCleanup(dbh);
     1461        return 9;
     1462    }
    14461463
    14471464    psDBDropTable(dbh, table);
Note: See TracChangeset for help on using the changeset viewer.