summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
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/tfile.c
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/tfile.c')
-rw-r--r--test/tfile.c2
1 files changed, 1 insertions, 1 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);