IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2009, 10:06:01 AM (17 years ago)
Author:
giebink
Message:

conform to src

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/camera/tap_pmHDU.c

    r15993 r21220  
    7373        psFree(header);
    7474        psFree(image);
    75         bool rc = pmHDUWrite(NULL, fitsFile);
     75        bool rc = pmHDUWrite(NULL, fitsFile, NULL);
    7676        ok(rc == false, "pmHDUWrite() returned FALSE with NULL psHDU as input");
    7777        psFitsClose(fitsFile);
    7878        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    7979    }
    80 
    8180
    8281    // Test pmHDUWrite() with NULL psFits input argument
     
    9190        }
    9291        ok(rc == true, "pmConfigFileRead() was successful");
    93         rc = pmHDUWrite(hdu, NULL);
     92        rc = pmHDUWrite(hdu, NULL, NULL);
    9493        ok(rc == false, "pmHDUWrite() returned FALSE with NULL psFits file as input");
    9594        psFree(hdu);
    9695        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    9796    }
    98 
    9997
    10098    // Test pmHDURead() with NULL pmHDU input argument
     
    157155        }
    158156        // 3. Use pmHDUWrite() to write that header to the FITS file
    159         rc = pmHDUWrite(hdu, fitsFileW);
     157        rc = pmHDUWrite(hdu, fitsFileW, NULL);
    160158        ok(rc == true, "pmHDUWrite() returned TRUE");
    161159        // 4. Close the FITS file, free memory
     
    208206        psFree(header);
    209207        psFree(image);
    210         bool rc = pmHDUWriteWeight(NULL, fitsFile);
     208        bool rc = pmHDUWriteWeight(NULL, fitsFile, NULL);
    211209        ok(rc == false, "pmHDUWriteWeight() returned FALSE with NULL psHDU as input");
    212210        psFitsClose(fitsFile);
     
    226224        }
    227225        ok(rc == true, "pmConfigFileRead() was successful");
    228         rc = pmHDUWriteWeight(hdu, NULL);
     226        rc = pmHDUWriteWeight(hdu, NULL, NULL);
    229227        ok(rc == false, "pmHDUWriteWeight    () returned FALSE with NULL psFits file as input");
    230228        psFree(hdu);
     
    292290        }
    293291        // 3. Use pmHDUWriteWeight() to write that header to the FITS file
    294         rc = pmHDUWriteWeight(hdu, fitsFileW);
     292        rc = pmHDUWriteWeight(hdu, fitsFileW, NULL);
    295293        ok(rc == true, "pmHDUWriteWeight() returned TRUE");
    296294        // 4. Close the FITS file, free memory
     
    343341        psFree(header);
    344342        psFree(image);
    345         bool rc = pmHDUWriteMask(NULL, fitsFile);
     343        bool rc = pmHDUWriteMask(NULL, fitsFile, NULL);
    346344        ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psHDU as input");
    347345        psFitsClose(fitsFile);
     
    361359        }
    362360        ok(rc == true, "pmConfigFileRead() was successful");
    363         rc = pmHDUWriteMask(hdu, NULL);
     361        rc = pmHDUWriteMask(hdu, NULL, NULL);
    364362        ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psFits file as input");
    365363        psFree(hdu);
     
    427425        }
    428426        // 3. Use pmHDUWriteMask() to write that header to the FITS file
    429         rc = pmHDUWriteMask(hdu, fitsFileW);
     427        rc = pmHDUWriteMask(hdu, fitsFileW, NULL);
    430428        ok(rc == true, "pmHDUWriteMask() returned TRUE");
    431429        // 4. Close the FITS file, free memory
     
    520518            }
    521519            ok(rc == true, "pmConfigFileRead() was successful");
    522             rc = pmHDUWrite(hdu, fitsFileW);
     520            rc = pmHDUWrite(hdu, fitsFileW, NULL);
    523521            ok(rc == true, "pmHDUWrite() successfully wrote the header");
    524522            psFree(hdu);
Note: See TracChangeset for help on using the changeset viewer.