Changeset 2915 for trunk/psModules/test/tst_pmSubtractBias.c
- Timestamp:
- Jan 5, 2005, 1:25:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmSubtractBias.c (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmSubtractBias.c
r2856 r2915 13 13 * @author GLG, MHPCC 14 14 * 15 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $16 * @date $Date: 200 4-12-30 21:35:04$15 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-01-05 23:25:25 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 82 82 actual = myReadout->image->data.F32[i][j]; 83 83 if (FLT_EPSILON < fabs(expect - actual)) { 84 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);84 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 85 85 testStatus = 1; 86 86 } … … 150 150 actual = myReadout->image->data.F32[i][j]; 151 151 if (FLT_EPSILON < fabs(expect - actual)) { 152 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);152 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 153 153 testStatus = 1; 154 154 } … … 223 223 actual = myReadout->image->data.F32[i][j]; 224 224 if (FLT_EPSILON < fabs(expect - actual)) { 225 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);225 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 226 226 testStatus = 1; 227 227 } … … 285 285 actual = myReadout->image->data.F32[i][j]; 286 286 if (FLT_EPSILON < fabs(expect - actual)) { 287 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);287 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 288 288 testStatus = 1; 289 289 } … … 351 351 actual = myReadout->image->data.F32[i][j]; 352 352 if (FLT_EPSILON < fabs(expect - actual)) { 353 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);353 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 354 354 testStatus = 1; 355 355 } … … 431 431 actual = myReadout->image->data.F32[i][j]; 432 432 if (FLT_EPSILON < fabs(expect - actual)) { 433 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);433 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 434 434 testStatus = 1; 435 435 } … … 505 505 actual = myReadout->image->data.F32[i][j]; 506 506 if (FLT_EPSILON < fabs(expect - actual)) { 507 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);507 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 508 508 testStatus = 1; 509 509 } … … 614 614 rc = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_ALL, stat, 0, PM_FIT_NONE, NULL); 615 615 if (rc != myReadout) { 616 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");616 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 617 617 testStatus = false; 618 618 } … … 622 622 rc = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_ROWS, stat, 0, PM_FIT_NONE, NULL); 623 623 if (rc != myReadout) { 624 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");624 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 625 625 testStatus = false; 626 626 psFree(rc); … … 631 631 rc = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_COLUMNS, stat, 0, PM_FIT_NONE, NULL); 632 632 if (rc != myReadout) { 633 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");633 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 634 634 testStatus = false; 635 635 psFree(rc); … … 645 645 psF32 actual = rc->image->data.F32[i][j]; 646 646 if (FLT_EPSILON < fabs(expect - actual)) { 647 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);647 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 648 648 testStatus = 1; 649 649 } … … 664 664 psF32 actual = rc->image->data.F32[i][j]; 665 665 if (FLT_EPSILON < fabs(expect - actual)) { 666 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);666 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 667 667 testStatus = 1; 668 668 } … … 681 681 psF32 actual = rc->image->data.F32[i][j]; 682 682 if (FLT_EPSILON < fabs(expect - actual)) { 683 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);683 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 684 684 testStatus = 1; 685 685 } … … 695 695 rc = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_NONE, stat, 0, PM_FIT_SPLINE, myBias); 696 696 if (rc != myReadout) { 697 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");697 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 698 698 testStatus = false; 699 699 psFree(rc); … … 705 705 psF32 actual = rc->image->data.F32[i][j]; 706 706 if (FLT_EPSILON < fabs(expect - actual)) { 707 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);707 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 708 708 testStatus = 1; 709 709 } … … 725 725 psF32 actual = rc->image->data.F32[i][j]; 726 726 if (FLT_EPSILON < fabs(expect - actual)) { 727 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);727 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 728 728 testStatus = 1; 729 729 } … … 742 742 psF32 actual = rc->image->data.F32[i][j]; 743 743 if (FLT_EPSILON < fabs(expect - actual)) { 744 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);744 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 745 745 testStatus = 1; 746 746 } … … 759 759 psF32 actual = rc->image->data.F32[i][j]; 760 760 if (FLT_EPSILON < fabs(expect - actual)) { 761 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);761 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 762 762 testStatus = 1; 763 763 } … … 771 771 0, PM_FIT_NONE, myBiasShortRows); 772 772 if (rc != myReadout) { 773 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");773 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 774 774 testStatus = false; 775 775 psFree(rc); … … 782 782 0, PM_FIT_NONE, myBiasShortCols); 783 783 if (rc != myReadout) { 784 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");784 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 785 785 testStatus = false; 786 786 psFree(rc); … … 792 792 0, 54321, NULL); 793 793 if (rc != myReadout) { 794 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");794 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 795 795 testStatus = false; 796 796 psFree(rc); … … 802 802 0, PM_FIT_NONE, NULL); 803 803 if (rc != myReadout) { 804 printf(" ERROR: pmSubtractBias() did not return input psReadout.\n");804 printf("TEST ERROR: pmSubtractBias() did not return input psReadout.\n"); 805 805 testStatus = false; 806 806 psFree(rc); … … 813 813 psF32 actual = rc->image->data.F32[i][j]; 814 814 if (FLT_EPSILON < fabs(expect - actual)) { 815 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);815 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 816 816 testStatus = 1; 817 817 } … … 921 921 actual = myReadout->image->data.F32[i][j]; 922 922 if (FLT_EPSILON < fabs(expect - actual)) { 923 printf(" ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect);923 printf("TEST ERROR: image[%d][%d] is %f, should be %f\n", i, j, actual, expect); 924 924 testStatus = 1; 925 925 }
Note:
See TracChangeset
for help on using the changeset viewer.
