IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2005, 2:19:51 PM (21 years ago)
Author:
desonia
Message:

changed psMatrix tests so that functions return NULL on error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMatrix07.c

    r3291 r3313  
    1616 *  @author  Ross Harman, MHPCC
    1717 *
    18  *  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
    19  *  @date  $Date: 2005-02-19 00:43:32 $
     18 *  @version $Revision: 1.11 $  $Name: not supported by cvs2svn $
     19 *  @date  $Date: 2005-02-24 00:19:51 $
    2020 *
    2121 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    245245                            "Invalid operation: inVector or its data is NULL.", 0);
    246246    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message");
    247     if(psVectorToMatrix(m2, NULL) != m2) {
     247    if(psVectorToMatrix(m2, NULL) != NULL) {
    248248        psError(PS_ERR_UNKNOWN,true,"Did not return output image");
    249249        return 12;
    250250    }
    251251    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message");
    252     if(psVectorToMatrix(m2_32, NULL) != m2_32) {
     252    if(psVectorToMatrix(m2_32, NULL) != NULL) {
    253253        psError(PS_ERR_UNKNOWN,true,"Did not return output image");
    254254        return 13;
     
    288288    psFree(m1);
    289289    psFree(v1);
    290     psFree(m2);
    291290    psFree(v2);
    292291    psFree(v3);
     
    295294    psFree(m1_32);
    296295    psFree(v1_32);
    297     psFree(m2_32);
    298296    psFree(v2_32);
    299297    psFree(v3_32);
Note: See TracChangeset for help on using the changeset viewer.