summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/c++/test/ptableTest.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp
index 84fbf29..4e7d306 100644
--- a/hl/c++/test/ptableTest.cpp
+++ b/hl/c++/test/ptableTest.cpp
@@ -254,12 +254,13 @@ out:
int TestCompress()
{
- unsigned int flags = 0;
+
+ unsigned int flags = 0;
unsigned int config = 0;
size_t cd_nelemts = 0;
TESTING("compression")
-
+#ifdef H5_HAVE_FILTER_DEFLATE
try {
/* Create packet table with compression. */
FL_PacketTable wrapper(fileID, "/compressTest", H5T_NATIVE_CHAR, 100, 8);
@@ -279,8 +280,11 @@ int TestCompress()
H5_FAILED();
return 1;
}
-
PASSED();
+#else
+ SKIPPED();
+ puts(" deflate filter not enabled");
+#endif /* H5_HAVE_FILTER_DEFLATE */
return 0;
}