From cd29e12e0252ccfc969281c5dabd991b46203f05 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Fri, 9 Mar 2001 19:09:55 -0500 Subject: [svn-r3601] Purpose: a bug fix Description: uninitialize the start and edge value for test_ras8 and test_ras24 functions Solution: initialize Platforms tested: eirene,arabica --- tools/h4toh5/h4toh5test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/h4toh5/h4toh5test.c b/tools/h4toh5/h4toh5test.c index 1f21b63..ea971a7 100644 --- a/tools/h4toh5/h4toh5test.c +++ b/tools/h4toh5/h4toh5test.c @@ -100,6 +100,7 @@ int main(void) { printf("failed to create ras24_test.hdf file.\n"); return FAIL; } + if(test_imageattr()== FAIL) { printf("failed to create image_attr_test.hdf file.\n"); return FAIL; @@ -1002,6 +1003,11 @@ int test_ras8() { il = MFGR_INTERLACE_PIXEL; dims[0] = X_LENGTH; dims[1] = Y_LENGTH; + /* define start and edges value. */ + for (i =0;i<2;i++) { + start[i] = 0; + edges[i] = dims[i]; + } /* Create the array. */ ri_id = GRcreate(gr_id, "Image_uint8", ncomp, DFNT_UINT8, il, dims); @@ -1109,6 +1115,10 @@ int test_ras24() { il = MFGR_INTERLACE_PIXEL; dims[0] = X_LENGTH; dims[1] = Y_LENGTH; + for(i=0;i<2;i++) { + start[i] = 0; + edges[i] = dims[i]; + } /* Create the array. */ ri_id = GRcreate(gr_id, "Image_uint24", ncomp, DFNT_UINT8, il, dims); -- cgit v0.12