mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-24 17:51:25 +08:00
[svn-r3237] Purpose:
Bug fix. Description: Properly detect whether the library has compression support and skip tests (with messages) if there is no compression. Platforms tested: FreeBSD 4.2 (hawkwind)
This commit is contained in:
parent
2725a29b0e
commit
ad08120b6d
14
test/dsets.c
14
test/dsets.c
@ -378,7 +378,7 @@ test_compression(hid_t file)
|
||||
/* Create the dataset */
|
||||
if ((dataset = H5Dcreate(file, DSET_COMPRESS_NAME, H5T_NATIVE_INT, space,
|
||||
dc))<0) goto error;
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -405,7 +405,7 @@ test_compression(hid_t file)
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -427,7 +427,7 @@ test_compression(hid_t file)
|
||||
|
||||
if (H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, xfer, points)<0)
|
||||
goto error;
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -456,7 +456,7 @@ test_compression(hid_t file)
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -496,7 +496,7 @@ test_compression(hid_t file)
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -528,7 +528,7 @@ test_compression(hid_t file)
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
@ -574,7 +574,7 @@ test_compression(hid_t file)
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef H5_HAVE_COMPRESS2
|
||||
#if defined(H5_HAVE_COMPRESS2) && defined(H5_HAVE_ZLIB_H) && defined(H5_HAVE_LIBZ)
|
||||
PASSED();
|
||||
#else
|
||||
SKIPPED();
|
||||
|
Loading…
x
Reference in New Issue
Block a user