summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/istore.c4
-rw-r--r--test/tfile.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/test/istore.c b/test/istore.c
index 3e13523..b1c2453 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -47,7 +47,11 @@ const char *FILENAME[] = {
#define TEST_DATATYPE H5T_NATIVE_UCHAR
#define TEST_CHUNK_SIZE 50
+#ifdef H5_HAVE_LARGE_HSIZET
#define TEST_SPARSE_SIZE 1000000
+#else /* H5_HAVE_LARGE_HSIZET */
+#define TEST_SPARSE_SIZE 1200
+#endif /* H5_HAVE_LARGE_HSIZET */
hsize_t chunk_dims[H5O_LAYOUT_NDIMS];
hssize_t zero[H5O_LAYOUT_NDIMS];
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);