Changeset 21220 for trunk/psModules/test/camera/tap_pmHDU.c
- Timestamp:
- Jan 29, 2009, 10:06:01 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/camera/tap_pmHDU.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/camera/tap_pmHDU.c
r15993 r21220 73 73 psFree(header); 74 74 psFree(image); 75 bool rc = pmHDUWrite(NULL, fitsFile );75 bool rc = pmHDUWrite(NULL, fitsFile, NULL); 76 76 ok(rc == false, "pmHDUWrite() returned FALSE with NULL psHDU as input"); 77 77 psFitsClose(fitsFile); 78 78 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 79 79 } 80 81 80 82 81 // Test pmHDUWrite() with NULL psFits input argument … … 91 90 } 92 91 ok(rc == true, "pmConfigFileRead() was successful"); 93 rc = pmHDUWrite(hdu, NULL );92 rc = pmHDUWrite(hdu, NULL, NULL); 94 93 ok(rc == false, "pmHDUWrite() returned FALSE with NULL psFits file as input"); 95 94 psFree(hdu); 96 95 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 97 96 } 98 99 97 100 98 // Test pmHDURead() with NULL pmHDU input argument … … 157 155 } 158 156 // 3. Use pmHDUWrite() to write that header to the FITS file 159 rc = pmHDUWrite(hdu, fitsFileW );157 rc = pmHDUWrite(hdu, fitsFileW, NULL); 160 158 ok(rc == true, "pmHDUWrite() returned TRUE"); 161 159 // 4. Close the FITS file, free memory … … 208 206 psFree(header); 209 207 psFree(image); 210 bool rc = pmHDUWriteWeight(NULL, fitsFile );208 bool rc = pmHDUWriteWeight(NULL, fitsFile, NULL); 211 209 ok(rc == false, "pmHDUWriteWeight() returned FALSE with NULL psHDU as input"); 212 210 psFitsClose(fitsFile); … … 226 224 } 227 225 ok(rc == true, "pmConfigFileRead() was successful"); 228 rc = pmHDUWriteWeight(hdu, NULL );226 rc = pmHDUWriteWeight(hdu, NULL, NULL); 229 227 ok(rc == false, "pmHDUWriteWeight () returned FALSE with NULL psFits file as input"); 230 228 psFree(hdu); … … 292 290 } 293 291 // 3. Use pmHDUWriteWeight() to write that header to the FITS file 294 rc = pmHDUWriteWeight(hdu, fitsFileW );292 rc = pmHDUWriteWeight(hdu, fitsFileW, NULL); 295 293 ok(rc == true, "pmHDUWriteWeight() returned TRUE"); 296 294 // 4. Close the FITS file, free memory … … 343 341 psFree(header); 344 342 psFree(image); 345 bool rc = pmHDUWriteMask(NULL, fitsFile );343 bool rc = pmHDUWriteMask(NULL, fitsFile, NULL); 346 344 ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psHDU as input"); 347 345 psFitsClose(fitsFile); … … 361 359 } 362 360 ok(rc == true, "pmConfigFileRead() was successful"); 363 rc = pmHDUWriteMask(hdu, NULL );361 rc = pmHDUWriteMask(hdu, NULL, NULL); 364 362 ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psFits file as input"); 365 363 psFree(hdu); … … 427 425 } 428 426 // 3. Use pmHDUWriteMask() to write that header to the FITS file 429 rc = pmHDUWriteMask(hdu, fitsFileW );427 rc = pmHDUWriteMask(hdu, fitsFileW, NULL); 430 428 ok(rc == true, "pmHDUWriteMask() returned TRUE"); 431 429 // 4. Close the FITS file, free memory … … 520 518 } 521 519 ok(rc == true, "pmConfigFileRead() was successful"); 522 rc = pmHDUWrite(hdu, fitsFileW );520 rc = pmHDUWrite(hdu, fitsFileW, NULL); 523 521 ok(rc == true, "pmHDUWrite() successfully wrote the header"); 524 522 psFree(hdu);
Note:
See TracChangeset
for help on using the changeset viewer.
