diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-10-12 18:23:39 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-10-12 18:23:39 (GMT) |
commit | 17a40b2b72e7088a7c87ebf5e440e5d68030a8bc (patch) | |
tree | 048b061532cf88d7c1823ed5c6fc3ec1462c9701 | |
parent | 65a1c88821f60afd477a64e81564f33d14e9e671 (diff) | |
download | hdf5-17a40b2b72e7088a7c87ebf5e440e5d68030a8bc.zip hdf5-17a40b2b72e7088a7c87ebf5e440e5d68030a8bc.tar.gz hdf5-17a40b2b72e7088a7c87ebf5e440e5d68030a8bc.tar.bz2 |
[svn-r12753] Added 1.6 compatibility support for packet table test.
Tested on mir.
-rw-r--r-- | hl/test/test_packet.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hl/test/test_packet.c b/hl/test/test_packet.c index b8235a3..ea985cf 100644 --- a/hl/test/test_packet.c +++ b/hl/test/test_packet.c @@ -819,8 +819,13 @@ test_compress(void) plist_id = H5Dget_create_plist(dset_id); if( plist_id < 0) TEST_ERROR; +#ifdef H5_WANT_H5_V1_6_COMPAT + err = H5Pget_filter_by_id(plist_id, H5Z_FILTER_DEFLATE, NULL, &num_elems, + filter_vals, 0, NULL); +#else err = H5Pget_filter_by_id(plist_id, H5Z_FILTER_DEFLATE, NULL, &num_elems, filter_vals, 0, NULL, NULL); +#endif if( err < 0) TEST_ERROR; /* The compression level should be 8, the value we passed in */ @@ -850,8 +855,13 @@ test_compress(void) if( plist_id < 0) TEST_ERROR; H5E_BEGIN_TRY { +#ifdef H5_WANT_H5_V1_6_COMPAT + err = H5Pget_filter_by_id(plist_id, H5Z_FILTER_DEFLATE, NULL, &num_elems, + filter_vals, 0, NULL); +#else err = H5Pget_filter_by_id(plist_id, H5Z_FILTER_DEFLATE, NULL, &num_elems, filter_vals, 0, NULL, NULL); +#endif if( err >= 0) TEST_ERROR; } H5E_END_TRY |