IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2004, 12:31:31 PM (22 years ago)
Author:
evanalst
Message:

Update tests for psMetadataAlloc and psMetadataItemAlloc.

File:
1 edited

Legend:

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

    r1843 r2012  
    1414*  @author  Ross Harman, MHPCC
    1515*
    16 *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    17 *  @date  $Date: 2004-09-21 23:24:42 $
     16*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     17*  @date  $Date: 2004-10-07 22:31:31 $
    1818*
    1919*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8989    printNegativeTestHeader(stdout,"psMetadata", "Test B - Attempt to create metadata item with null name",
    9090                            "Null value for name not allowed", 0);
    91     psMetadataItemAlloc(NULL, PS_META_STR, "I am a string", "HELLO WORLD");
     91    psLogMsg(__func__,PS_LOG_INFO,"Following should produce error for null name.");
     92    badItem = psMetadataItemAlloc(NULL, PS_META_STR, "I am a string", "HELLO WORLD");
     93    if (badItem != NULL) {
     94        psError(__func__,"psMetadataItemAlloc did not return null with null name item.");
     95        return 10;
     96    }
    9297    printFooter(stdout, "psMetadata", "Test B - Attempt to create metadata item with null name", true);
    9398
Note: See TracChangeset for help on using the changeset viewer.