[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.
This commit is contained in:
MuQun Yang 2007-06-12 16:51:19 -05:00
parent 765da09bad
commit 46226727d1

View File

@ -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;
}