diff options
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/dsets.c b/test/dsets.c index 1343f22..890aa2f 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -366,14 +366,14 @@ test_compression(hid_t file) const hsize_t chunk_size[2] = {2, 25}; const hssize_t hs_offset[2] = {7, 30}; const hsize_t hs_size[2] = {4, 50}; -#if !(defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)) +#ifndef H5_HAVE_COMPRESSION const char *not_supported; #endif hsize_t i, j, n; void *tconv_buf = NULL; -#if !(defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)) +#ifndef H5_HAVE_COMPRESSION not_supported = " Deflate compression is not supported.\n" " The zlib was not found when hdf5 was configured."; #endif @@ -399,7 +399,7 @@ test_compression(hid_t file) /* Create the dataset */ if ((dataset = H5Dcreate(file, DSET_COMPRESS_NAME, H5T_NATIVE_INT, space, dc))<0) goto error; -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -426,7 +426,7 @@ test_compression(hid_t file) } } } -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -448,7 +448,7 @@ test_compression(hid_t file) if (H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, xfer, points)<0) goto error; -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -477,7 +477,7 @@ test_compression(hid_t file) } } } -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -517,7 +517,7 @@ test_compression(hid_t file) } } } -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -549,7 +549,7 @@ test_compression(hid_t file) } } } -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); @@ -595,7 +595,7 @@ test_compression(hid_t file) } } } -#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ) +#ifdef H5_HAVE_COMPRESSION PASSED(); #else SKIPPED(); |