mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[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:
parent
765da09bad
commit
46226727d1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user