Changeset 21220 for trunk/psModules/test/camera/tap_pmFPAHeader.c
- Timestamp:
- Jan 29, 2009, 10:06:01 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/camera/tap_pmFPAHeader.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/camera/tap_pmFPAHeader.c
r16008 r21220 142 142 pmFPA* generateSimpleFPA(psMetadata *camera) 143 143 { 144 pmFPA* fpa = pmFPAAlloc(camera );144 pmFPA* fpa = pmFPAAlloc(camera, NULL); 145 145 fpa->fromTPA = PS_CREATE_2D_IDENTITY_PLANE_TRANSFORM(); 146 146 fpa->toTPA = PS_CREATE_2D_IDENTITY_PLANE_TRANSFORM(); … … 181 181 ok(chip != NULL, "Allocated a pmChip successfully"); 182 182 ok(cell != NULL, "Allocated a pmCell successfully"); 183 ok(!pmCellReadHeader(cell, NULL ), "pmCellReadHeader(cell, NULL) returned FALSE");183 ok(!pmCellReadHeader(cell, NULL, NULL), "pmCellReadHeader(cell, NULL) returned FALSE"); 184 184 psFree(fpa); 185 185 psFree(camera); … … 193 193 psFits* fitsFileW = psFitsOpen(fitsFilename, "w"); 194 194 ok(fitsFileW != NULL, "psFitsOpen() opened the FITS file"); 195 ok(!pmCellReadHeader(NULL, fitsFileW ), "pmCellReadHeader(NULL, fitsFile) returned FALSE");195 ok(!pmCellReadHeader(NULL, fitsFileW, NULL), "pmCellReadHeader(NULL, fitsFile) returned FALSE"); 196 196 psFree(fitsFileW); 197 197 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 225 225 } 226 226 ok(rc == true, "pmConfigFileRead() was successful"); 227 rc = pmHDUWrite(hdu, fitsFileW );227 rc = pmHDUWrite(hdu, fitsFileW, NULL); 228 228 ok(rc == true, "pmHDUWrite() successfully wrote the header"); 229 229 psFree(hdu); … … 242 242 ok(cell != NULL, "Allocated a pmCell successfully"); 243 243 244 ok(pmCellReadHeader(cell, fitsFileR ), "pmCellReadHeader() returned TRUE with acceptable data");244 ok(pmCellReadHeader(cell, fitsFileR, NULL), "pmCellReadHeader() returned TRUE with acceptable data"); 245 245 246 246 // XXX: It's not clear if we should test if the HDU and pmConcepts actually … … 266 266 ok(chip != NULL, "Allocated a pmChip successfully"); 267 267 ok(cell != NULL, "Allocated a pmCell successfully"); 268 ok(!pmChipReadHeader(chip, NULL ), "pmChipReadHeader(chip, NULL) returned FALSE");268 ok(!pmChipReadHeader(chip, NULL, NULL), "pmChipReadHeader(chip, NULL) returned FALSE"); 269 269 psFree(fpa); 270 270 psFree(camera); … … 278 278 psFits* fitsFileW = psFitsOpen(fitsFilename, "w"); 279 279 ok(fitsFileW != NULL, "psFitsOpen() opened the FITS file"); 280 ok(!pmChipReadHeader(NULL, fitsFileW ), "pmChipReadHeader(NULL, fitsFile) returned FALSE");280 ok(!pmChipReadHeader(NULL, fitsFileW, NULL), "pmChipReadHeader(NULL, fitsFile) returned FALSE"); 281 281 psFree(fitsFileW); 282 282 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 311 311 } 312 312 ok(rc == true, "pmConfigFileRead() was successful"); 313 rc = pmHDUWrite(hdu, fitsFileW );313 rc = pmHDUWrite(hdu, fitsFileW, NULL); 314 314 ok(rc == true, "pmHDUWrite() successfully wrote the header"); 315 315 psFree(hdu); … … 337 337 } 338 338 339 ok(pmChipReadHeader(chip, fitsFileR ), "pmChipReadHeader() returned TRUE with acceptable data");339 ok(pmChipReadHeader(chip, fitsFileR, NULL), "pmChipReadHeader() returned TRUE with acceptable data"); 340 340 341 341 … … 362 362 ok(chip != NULL, "Allocated a pmChip successfully"); 363 363 ok(cell != NULL, "Allocated a pmCell successfully"); 364 ok(!pmFPAReadHeader(fpa, NULL ), "pmFPAReadHeader(fpa, NULL) returned FALSE");364 ok(!pmFPAReadHeader(fpa, NULL, NULL), "pmFPAReadHeader(fpa, NULL) returned FALSE"); 365 365 psFree(fpa); 366 366 psFree(camera); … … 374 374 psFits* fitsFileW = psFitsOpen(fitsFilename, "w"); 375 375 ok(fitsFileW != NULL, "psFitsOpen() opened the FITS file"); 376 ok(!pmFPAReadHeader(NULL, fitsFileW ), "pmFPAReadHeader(NULL, fitsFile) returned FALSE");376 ok(!pmFPAReadHeader(NULL, fitsFileW, NULL), "pmFPAReadHeader(NULL, fitsFile) returned FALSE"); 377 377 psFree(fitsFileW); 378 378 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 407 407 } 408 408 ok(rc == true, "pmConfigFileRead() was successful"); 409 rc = pmHDUWrite(hdu, fitsFileW );409 rc = pmHDUWrite(hdu, fitsFileW, NULL); 410 410 ok(rc == true, "pmHDUWrite() successfully wrote the header"); 411 411 psFree(hdu); … … 435 435 fpa->hdu = pmHDUAlloc(extname); 436 436 437 ok(pmFPAReadHeader(fpa, fitsFileR ), "pmFPAReadHeader() returned TRUE with acceptable data");437 ok(pmFPAReadHeader(fpa, fitsFileR, NULL), "pmFPAReadHeader() returned TRUE with acceptable data"); 438 438 439 439 // XXX: It's not clear if we should test if the HDU and pmConcepts actually
Note:
See TracChangeset
for help on using the changeset viewer.
