summaryrefslogtreecommitdiffstats
path: root/hl/c++
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2007-06-12 21:51:19 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2007-06-12 21:51:19 (GMT)
commit46226727d1ecd8c5acc5121ff2317b5bff247d8b (patch)
tree5b780cec2a179ff72b4a5c5a7ec9bd936de1583f /hl/c++
parent765da09bad62fc5669b4aeea6b806e599fc5bdfd (diff)
downloadhdf5-46226727d1ecd8c5acc5121ff2317b5bff247d8b.zip
hdf5-46226727d1ecd8c5acc5121ff2317b5bff247d8b.tar.gz
hdf5-46226727d1ecd8c5acc5121ff2317b5bff247d8b.tar.bz2
[svn-r13857] This test will fail without having zlib library and this is the case for windows 64-bit support. So we add a macro to skip this test if there is no zlib library.
Tested at windows and linux. Too minor to use h5committest.
Diffstat (limited to 'hl/c++')
-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;
}