IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11657


Ignore:
Timestamp:
Feb 5, 2007, 3:01:05 PM (19 years ago)
Author:
gusciora
Message:

Fixed erroneous NULL parameter test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tap_psCoord02.c

    r11180 r11657  
    77*  XXX: These tests should probably be split among several files
    88*
    9 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2007-01-19 20:42:21 $
     9*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2007-02-06 01:01:05 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    162162    psLogSetFormat("HLNM");
    163163    psLogSetLevel(PS_LOG_INFO);
    164     plan_tests(27);
     164    plan_tests(25);
    165165    srand(RANDOM_SEED);
    166166
     
    508508
    509509    // psPlaneTransformDeriv()
    510     // Ensure psPlaneTransformDeriv() returns NULL for NULL input plane transform
    511     // Following should generate error message
    512     // XXX: We do not test error generation
    513     // XXX: This test fails, probably because of spec changes
    514     {
    515         psMemId id = psMemGetId();
    516         psPlane *coord = psPlaneAlloc();
    517         psPlaneTransform *trans = psPlaneTransformAlloc(1, 3);
    518         psPlane *deriv = psPlaneTransformDeriv(NULL, trans, coord);
    519         ok(deriv == NULL, "psPlaneTransformDeriv(NULL, trans, coord) returned NULL");
    520         psFree(coord);
    521         psFree(trans);
    522         psFree(deriv);
    523         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    524     }
    525 
    526 
    527     // psPlaneTransformDeriv()
    528510    // Ensure psPlaneTransformDeriv() returns NULL for NULL input plane
    529511    // psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
Note: See TracChangeset for help on using the changeset viewer.