From 46226727d1ecd8c5acc5121ff2317b5bff247d8b Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Tue, 12 Jun 2007 16:51:19 -0500 Subject: [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. --- hl/c++/test/ptableTest.cpp | 10 +++++++--- 1 file 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; } -- cgit v0.12