summaryrefslogtreecommitdiffstats
path: root/test/tmisc.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-08-12 15:24:46 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-08-12 15:24:46 (GMT)
commit08fde753d9cdce4370f3746fa318eaace4c6795e (patch)
treeee81dc1fd8cdf471326a1c3713ccc7b8d9d46ff7 /test/tmisc.c
parent2a866e549f2cc0234611d293d1d0e5a78ef8de1c (diff)
downloadhdf5-08fde753d9cdce4370f3746fa318eaace4c6795e.zip
hdf5-08fde753d9cdce4370f3746fa318eaace4c6795e.tar.gz
hdf5-08fde753d9cdce4370f3746fa318eaace4c6795e.tar.bz2
[svn-r9073] Purpose: bug fix
Description: The test tried to read a dataset of H5T_STD_I32LE type and verify with the size of H5T_NATIVE_INT in function test_misc20(). This will fail on some machines like Crays where the size of H5T_NATIVE_INT is 8 bytes. Solution: Changed from H5T_NATIVE_INT to H5T_STD_I32LE. Platforms tested: Crays - very simple change.
Diffstat (limited to 'test/tmisc.c')
-rw-r--r--test/tmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index 6952fa7..65a0110 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -3482,7 +3482,7 @@ test_misc20(void)
/* Get the layout contiguous storage size */
ret = H5D_layout_contig_size_test(did,&contig_size);
CHECK(ret, FAIL, "H5D_layout_contig_size_test");
- VERIFY(contig_size, MISC20_SPACE_DIM0*MISC20_SPACE_DIM1*H5Tget_size(H5T_NATIVE_INT), "H5D_layout_contig_size_test");
+ VERIFY(contig_size, MISC20_SPACE_DIM0*MISC20_SPACE_DIM1*H5Tget_size(H5T_STD_I32LE), "H5D_layout_contig_size_test");
/* Close datasset */
ret=H5Dclose(did);