summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tmisc.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index 1620831..00ba268 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -3493,7 +3493,14 @@ test_misc20(void)
CHECK(ret, FAIL, "H5Fclose");
} /* end test_misc20() */
-
+
+/*
+ test_misc21 and test_misc22 should be executed when SZIP is present
+ and encoder is available.
+ EIP 2004/8/04
+*/
+#ifdef H5_HAVE_FILTER_SZIP
+#ifdef H5_SZIP_CAN_ENCODE
/****************************************************************
**
** test_misc21(): Test that late allocation time is treated the same
@@ -3502,7 +3509,6 @@ test_misc20(void)
** don't exactly match the dataspace.
**
****************************************************************/
-#ifdef H5_HAVE_FILTER_SZIP
static void
test_misc21(void)
{
@@ -3559,7 +3565,6 @@ test_misc21(void)
HDfree(buf);
} /* end test_misc21() */
-#endif /* H5_HAVE_FILTER_SZIP */
/****************************************************************
**
@@ -3568,8 +3573,6 @@ test_misc21(void)
** Tests for precision and offset combo's.
**
****************************************************************/
-#ifdef H5_HAVE_FILTER_SZIP
-#ifdef H5_SZIP_CAN_ENCODE
static void
test_misc22(void)
{
@@ -3738,8 +3741,8 @@ test_misc(void)
test_misc19(); /* Test incrementing & decrementing ref count on IDs */
test_misc20(); /* Test problems with truncated dimensions in version 2 of storage layout message */
#ifdef H5_HAVE_FILTER_SZIP
- test_misc21(); /* Test that "late" allocation time is treated the same as "incremental", for chunked datasets w/a filters */
#ifdef H5_SZIP_CAN_ENCODE
+ test_misc21(); /* Test that "late" allocation time is treated the same as "incremental", for chunked datasets w/a filters */
test_misc22(); /* check szip bits per pixel */
#endif /* H5_SZIP_CAN_ENCODE */
#endif /* H5_HAVE_FILTER_SZIP */