summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2004-03-08 17:54:06 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2004-03-08 17:54:06 (GMT)
commit2bb3534b8ffc939037555b1a529f885fdf9613f9 (patch)
treed11240f8f059e0b728d32431263d482e1da39ac2 /test
parent13e05040b96396ed11f2f9a2c3572939b5080f2b (diff)
downloadhdf5-2bb3534b8ffc939037555b1a529f885fdf9613f9.zip
hdf5-2bb3534b8ffc939037555b1a529f885fdf9613f9.tar.gz
hdf5-2bb3534b8ffc939037555b1a529f885fdf9613f9.tar.bz2
[svn-r8238] Purpose: A small bug fix
Description: Wrong datatype (unsigned instead of hsize_t) was used to calculate the length of the buffer that hold the data. As a result, only part of the data was compared with the original data. Solution: Use the correct datatype. Platforms tested: Tried h5committest, but forgot to do it on AFS. As a resulti, only verbena test was completed. I decided to go ahead and check the change in and do it correctly for the development branch (later today). Misc. update:
Diffstat (limited to 'test')
-rw-r--r--test/th5s.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/th5s.c b/test/th5s.c
index 3404d40..95681c2 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -112,7 +112,7 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(unsigned)), 0,
+ VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0,
"H5Sget_simple_extent_dims");
sid2 = H5Screate_simple(SPACE2_RANK, dims2, max2);
@@ -129,9 +129,9 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid2, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(unsigned)), 0,
+ VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0,
"H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(unsigned)), 0,
+ VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0,
"H5Sget_simple_extent_dims");
ret = H5Sclose(sid1);