Changeset 2915 for trunk/psModules/test/tst_pmReadoutCombine.c
- Timestamp:
- Jan 5, 2005, 1:25:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmReadoutCombine.c (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmReadoutCombine.c
r2856 r2915 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $8 * @date $Date: 200 4-12-30 21:35:04$7 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-01-05 23:25:25 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 for (psS32 j = 0 ; j < output->numCols ; j++) { 45 45 if (output->data.F32[i][j] != expect) { 46 printf(" ERROR: output[%d][%d] is %.2f, should be %f\n", i, j, output->data.F32[i][j], expect);46 printf("TEST ERROR: output[%d][%d] is %.2f, should be %f\n", i, j, output->data.F32[i][j], expect); 47 47 testStatus = false; 48 48 } … … 261 261 262 262 if (rc->type.type != scale->type.type) { 263 printf(" ERROR: output readout->image has incorrect type.\n");263 printf("TEST ERROR: output readout->image has incorrect type.\n"); 264 264 testStatus = false; 265 265 } 266 266 psFree(rc); 267 267 } else { 268 printf(" ERROR: pmReadoutCombine() returned NULL\n");268 printf("TEST ERROR: pmReadoutCombine() returned NULL\n"); 269 269 testStatus = false; 270 270 … … 275 275 rc = pmReadoutCombine(NULL, list, params, zeroHalf, scale, true, 0.0, 0.0); 276 276 if (rc != NULL) { 277 printf(" ERROR: pmReadoutCombine() did not return NULL\n");277 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 278 278 testStatus = false; 279 279 } … … 283 283 rc = pmReadoutCombine(NULL, list, params, zeroF64, scale, true, 0.0, 0.0); 284 284 if (rc != NULL) { 285 printf(" ERROR: pmReadoutCombine() did not return NULL\n");285 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 286 286 testStatus = false; 287 287 } … … 300 300 rc = NULL; 301 301 } else { 302 printf(" ERROR: pmReadoutCombine() returned NULL\n");302 printf("TEST ERROR: pmReadoutCombine() returned NULL\n"); 303 303 testStatus = false; 304 304 } … … 316 316 317 317 if (rc->type.type != scale->type.type) { 318 printf(" ERROR: output readout->image has incorrect type.\n");318 printf("TEST ERROR: output readout->image has incorrect type.\n"); 319 319 testStatus = false; 320 320 } 321 321 psFree(rc); 322 322 } else { 323 printf(" ERROR: pmReadoutCombine() returned NULL\n");323 printf("TEST ERROR: pmReadoutCombine() returned NULL\n"); 324 324 testStatus = false; 325 325 … … 330 330 rc = pmReadoutCombine(output, list, params, zero, scaleHalf, true, 0.0, 0.0); 331 331 if (rc != NULL) { 332 printf(" ERROR: pmReadoutCombine() did not return NULL\n");332 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 333 333 testStatus = false; 334 334 } … … 338 338 rc = pmReadoutCombine(output, list, params, zero, scaleF64, true, 0.0, 0.0); 339 339 if (rc != NULL) { 340 printf(" ERROR: pmReadoutCombine() did not return NULL\n");340 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 341 341 testStatus = false; 342 342 } … … 355 355 rc = NULL; 356 356 } else { 357 printf(" ERROR: pmReadoutCombine() returned NULL\n");357 printf("TEST ERROR: pmReadoutCombine() returned NULL\n"); 358 358 testStatus = false; 359 359 } … … 364 364 rc = pmReadoutCombine(output, list, params, zero, scale, true, 0.0, 0.0); 365 365 if (rc != NULL) { 366 printf(" ERROR: pmReadoutCombine() did not return NULL\n");366 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 367 367 testStatus = false; 368 368 } … … 377 377 rc = pmReadoutCombine(output, list, params, zero, scale, true, 0.0, 0.0); 378 378 if (rc != NULL) { 379 printf(" ERROR: pmReadoutCombine() did not return NULL\n");379 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 380 380 testStatus = false; 381 381 } … … 387 387 rc = pmReadoutCombine(output, NULL, params, zero, scale, true, 0.0, 0.0); 388 388 if (rc != NULL) { 389 printf(" ERROR: pmReadoutCombine() did not return NULL\n");389 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 390 390 testStatus = false; 391 391 } … … 395 395 rc = pmReadoutCombine(output, list, NULL, zero, scale, true, 0.0, 0.0); 396 396 if (rc != NULL) { 397 printf(" ERROR: pmReadoutCombine() did not return NULL\n");397 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 398 398 testStatus = false; 399 399 } … … 404 404 rc = pmReadoutCombine(output, list, params, zero, scale, true, 0.0, 0.0); 405 405 if (rc != NULL) { 406 printf(" ERROR: pmReadoutCombine() did not return NULL\n");406 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 407 407 testStatus = false; 408 408 } … … 412 412 psStats *oldStats = params->stats; 413 413 printf("Calling pmReadoutCombine() with NULL param->stats. Should generate error, return NULL.\n"); 414 params->stats = NULL; 414 415 rc = pmReadoutCombine(output, list, params, zero, scale, true, 0.0, 0.0); 415 416 if (rc != NULL) { 416 printf(" ERROR: pmReadoutCombine() did not return NULL\n");417 printf("TEST ERROR: pmReadoutCombine() did not return NULL\n"); 417 418 testStatus = false; 418 419 }
Note:
See TracChangeset
for help on using the changeset viewer.
