summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-11-08 14:21:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-11-08 14:21:49 (GMT)
commitdd969f1eadfd2cd500f3f44415b85cfea7216794 (patch)
tree587f50535901e55ac89f66e916f74826c26e75a3 /test/tfile.c
parentf809c2d3529f9241b39f90c69c5d2c1b24cbd0b9 (diff)
downloadhdf5-dd969f1eadfd2cd500f3f44415b85cfea7216794.zip
hdf5-dd969f1eadfd2cd500f3f44415b85cfea7216794.tar.gz
hdf5-dd969f1eadfd2cd500f3f44415b85cfea7216794.tar.bz2
[svn-r7827] Purpose:
Bug fix Description: Make --disable-hsizet work properly again by fixing a couple of tests and correcting the definition of SSIZET_MAX. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest not used, as it doesn't test this configuration.
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tfile.c b/test/tfile.c
index d418b0b..63815d6 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -1195,7 +1195,11 @@ test_file_freespace(void)
/* Check that there is the right amount of free space in the file */
free_space = H5Fget_freespace(file);
CHECK(free_space, FAIL, "H5Fget_freespace");
+#ifdef H5_HAVE_LARGE_HSIZET
VERIFY(free_space, 168, "H5Fget_freespace");
+#else /* H5_HAVE_LARGE_HSIZET */
+ VERIFY(free_space, 76, "H5Fget_freespace");
+#endif /* H5_HAVE_LARGE_HSIZET */
/* Delete datasets in file */
for(u=0; u<10; u++) {
@@ -1207,7 +1211,11 @@ test_file_freespace(void)
/* Check that there is the right amount of free space in the file */
free_space = H5Fget_freespace(file);
CHECK(free_space, FAIL, "H5Fget_freespace");
+#ifdef H5_HAVE_LARGE_HSIZET
VERIFY(free_space, 3584, "H5Fget_freespace");
+#else /* H5_HAVE_LARGE_HSIZET */
+ VERIFY(free_space, 3428, "H5Fget_freespace");
+#endif /* H5_HAVE_LARGE_HSIZET */
/* Close file */
ret = H5Fclose(file);