summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-10-09 16:55:03 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-10-09 16:55:03 (GMT)
commitb04c09522bd61adf84a48f900de70926251c289f (patch)
treef56971276ff5e927f5eac0915cd58ccc22833505 /test
parent8da2fafcec195f762a87e096330242c6bad064da (diff)
downloadhdf5-b04c09522bd61adf84a48f900de70926251c289f.zip
hdf5-b04c09522bd61adf84a48f900de70926251c289f.tar.gz
hdf5-b04c09522bd61adf84a48f900de70926251c289f.tar.bz2
[svn-r7582] Purpose:
Bug fix Description: The tests recently added for checking a file's freespace and verifying the new fields added to the H5G_stat_t structure use H5T_NATIVE_INT as the type for the datasets and attributes they create. Because the tests check explicit file sizes, this causes problems on Crays, where a native int is 64-bit instead of 32-bit. Solution: Change the tests to use H5T_STD_U32LE instead of H5T_NATIVE_INT. Platforms tested: FreeBSD 4.9 (sleipnir) Cray SV1 (wind)
Diffstat (limited to 'test')
-rw-r--r--test/tfile.c2
-rw-r--r--test/tmisc.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/tfile.c b/test/tfile.c
index e76999f..b829133 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -1016,7 +1016,7 @@ test_file_freespace(void)
/* Create datasets in file */
for(u=0; u<10; u++) {
sprintf(name,"Dataset %u",u);
- dset = H5Dcreate(file, name, H5T_NATIVE_INT, dspace, dcpl);
+ dset = H5Dcreate(file, name, H5T_STD_U32LE, dspace, dcpl);
CHECK(dset, FAIL, "H5Dcreate");
ret = H5Dclose(dset);
diff --git a/test/tmisc.c b/test/tmisc.c
index 816c8cc..9b750c8 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -2826,7 +2826,7 @@ test_misc18(void)
CHECK(sid, FAIL, "H5Screate_simple");
/* Create first dataset */
- did1 = H5Dcreate(fid, MISC18_DSET1_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT);
+ did1 = H5Dcreate(fid, MISC18_DSET1_NAME, H5T_STD_U32LE, sid, H5P_DEFAULT);
CHECK(did1, FAIL, "H5Screate_simple");
/* Get object information */
@@ -2838,7 +2838,7 @@ test_misc18(void)
VERIFY(statbuf.ohdr.free, 152, "H5Gget_objinfo");
/* Create second dataset */
- did2 = H5Dcreate(fid, MISC18_DSET2_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT);
+ did2 = H5Dcreate(fid, MISC18_DSET2_NAME, H5T_STD_U32LE, sid, H5P_DEFAULT);
CHECK(did2, FAIL, "H5Screate_simple");
/* Get object information */
@@ -2855,14 +2855,14 @@ test_misc18(void)
sprintf(attr_name,"Attr %u",u);
/* Create & close attribute on first dataset */
- aid = H5Acreate(did1, attr_name, H5T_NATIVE_INT, sid, H5P_DEFAULT);
+ aid = H5Acreate(did1, attr_name, H5T_STD_U32LE, sid, H5P_DEFAULT);
CHECK(aid, FAIL, "H5Gget_objinfo");
ret = H5Aclose(aid);
CHECK(ret, FAIL, "HAclose");
/* Create & close attribute on second dataset */
- aid = H5Acreate(did2, attr_name, H5T_NATIVE_INT, sid, H5P_DEFAULT);
+ aid = H5Acreate(did2, attr_name, H5T_STD_U32LE, sid, H5P_DEFAULT);
CHECK(aid, FAIL, "H5Gget_objinfo");
ret = H5Aclose(aid);