summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-10-09 16:54:58 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-10-09 16:54:58 (GMT)
commit90bdeac677256452bb3e56a820eca37d2b71785d (patch)
tree099955149c57cbb51ef953af1085325d695b8447 /test
parent49727974f39bf0ac2b9d4292cfd1cdbacb77328b (diff)
downloadhdf5-90bdeac677256452bb3e56a820eca37d2b71785d.zip
hdf5-90bdeac677256452bb3e56a820eca37d2b71785d.tar.gz
hdf5-90bdeac677256452bb3e56a820eca37d2b71785d.tar.bz2
[svn-r7581] 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 c4d008d..cd87fdd 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 640b678..3d4b165 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -2822,7 +2822,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 */
@@ -2834,7 +2834,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 */
@@ -2851,14 +2851,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);