summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2001-03-10 00:09:55 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2001-03-10 00:09:55 (GMT)
commitcd29e12e0252ccfc969281c5dabd991b46203f05 (patch)
tree5134030f6b3c065f773fc8d3fbe24e98b08597ad /tools
parentee17f3731ebc5bddb3ba14d5647b8e997566ad49 (diff)
downloadhdf5-cd29e12e0252ccfc969281c5dabd991b46203f05.zip
hdf5-cd29e12e0252ccfc969281c5dabd991b46203f05.tar.gz
hdf5-cd29e12e0252ccfc969281c5dabd991b46203f05.tar.bz2
[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
Diffstat (limited to 'tools')
-rw-r--r--tools/h4toh5/h4toh5test.c10
1 files changed, 10 insertions, 0 deletions
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);