summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2003-04-29 19:49:48 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2003-04-29 19:49:48 (GMT)
commitb58192dfe739118385748c776e8a99c16b82bb03 (patch)
treed2b3181ef6e49db6359eb715b08a1b7b4a81eb8a /c++/test
parent67985f540fe44d0ea57415dd10a592259a25d154 (diff)
downloadhdf5-b58192dfe739118385748c776e8a99c16b82bb03.zip
hdf5-b58192dfe739118385748c776e8a99c16b82bb03.tar.gz
hdf5-b58192dfe739118385748c776e8a99c16b82bb03.tar.bz2
[svn-r6779] Purpose: Backward compatibility change
Description: 1.4 compatibility for H5G_obj_t type and H5Zregister test. Solution: use macro H5_WANT_H5_V1_4_COMPAT Platforms tested: h5committest
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/dsets.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp
index 8a2d77e..4ccbac2 100644
--- a/c++/test/dsets.cpp
+++ b/c++/test/dsets.cpp
@@ -650,7 +650,11 @@ test_compression(H5File& file)
TESTING("compression (app-defined method)");
// BMR: not sure how to handle this yet
- if (H5Zregister (H5Z_BOGUS)<0) goto error;
+#ifdef H5_WANT_H5_V1_4_COMPAT
+ if (H5Zregister (H5Z_FILTER_BOGUS, "bogus", bogus)<0) goto error;
+#else /* H5_WANT_H5_V1_4_COMPAT */
+ if (H5Zregister (H5Z_BOGUS)<0) goto error;
+#endif /* H5_WANT_H5_V1_4_COMPAT */
if (H5Pset_filter (dscreatplist.getId(), H5Z_FILTER_BOGUS, 0, 0, NULL)<0) goto error;
dscreatplist.setFilter (H5Z_FILTER_BOGUS, 0, 0, NULL);