IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2005, 4:59:56 PM (21 years ago)
Author:
evanalst
Message:

Update test to verify NULL not return during parse error detection.

File:
1 edited

Legend:

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

    r3983 r4112  
    1313 *  @author  Eric Van Alst, MHPCC
    1414 *
    15  *  @version $Revision: 1.17 $  $Name: not supported by cvs2svn $
    16  *  @date  $Date: 2005-05-19 20:59:00 $
     15 *  @version $Revision: 1.18 $  $Name: not supported by cvs2svn $
     16 *  @date  $Date: 2005-06-04 02:59:56 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    929929    }
    930930    // Verify return value is null
    931     if(metadata1 != NULL) {
    932         psError(PS_ERR_UNKNOWN,true,"Expected a NULL return for failed parse");
     931    if(metadata1 == NULL) {
     932        psError(PS_ERR_UNKNOWN,true,"Did not expected a NULL return for failed parse");
    933933        return 2;
    934934    }
     935    psFree(metadata1);
    935936
    936937    // Attempt parse a non-existant file
     
    975976        return 1;
    976977    }
    977     if(metadata1 != NULL) {
    978         psError(PS_ERR_UNKNOWN,true,"Expected a NULL return for failed due to overwrite false");
     978    if(metadata1 == NULL) {
     979        psError(PS_ERR_UNKNOWN,true,"Did not expected a NULL return for failed due to overwrite false");
    979980        return 2;
    980981    }
Note: See TracChangeset for help on using the changeset viewer.