summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-04-20 19:32:47 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-04-20 19:32:47 (GMT)
commit5237d6680aa7756f37e868dc9643e214afdf3511 (patch)
tree4a23a36a72f07939f81d5bd6535b532a8874f1c8 /test
parent58976422500779b530468a488e6b011c985e8374 (diff)
downloadhdf5-5237d6680aa7756f37e868dc9643e214afdf3511.zip
hdf5-5237d6680aa7756f37e868dc9643e214afdf3511.tar.gz
hdf5-5237d6680aa7756f37e868dc9643e214afdf3511.tar.bz2
[svn-r16809] Purpose: Add version macro
Description: Versioning was just added to H5Z_class_t in 1.8. Therefore, I am adding a H5Z_class1_t macro to 1.6 to enable backwards compatibility using H5Z_class1_t. Tested: jam (simple change)
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 5445e23..2623a58 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -4130,7 +4130,7 @@ static herr_t
test_compat(hid_t file)
{
hid_t dataset, space, dcpl;
- H5Z_filter_t filtn;
+ H5Z_class1_t filter_class;
herr_t status;
TESTING("version compatibility macros");
@@ -4159,6 +4159,13 @@ test_compat(hid_t file)
if (H5Pget_filter1(dcpl, 0, NULL, NULL, NULL, 0, NULL) < 0) goto error;
if (H5Pget_filter_by_id1(dcpl, H5Z_FILTER_SHUFFLE, NULL, NULL, NULL, 0, NULL) < 0) goto error;
+ /* Try setting a few fields in H5Z_class1_t */
+ filter_class.id = 365;
+ filter_class.name = "fake_filter";
+ filter_class.can_apply = NULL;
+ filter_class.set_local = NULL;
+ filter_class.filter = NULL;
+
/* Close */
if (H5Pclose(dcpl) < 0) goto error;
if (H5Dclose(dataset) < 0) goto error;