diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-02 19:22:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-02 19:22:12 (GMT) |
commit | 918973d9fc5b96cd559546eb5e09c87542ce598d (patch) | |
tree | 50901a0e86600485efe4bb15087b142092c83673 /test/dsets.c | |
parent | 763e6be682e7da0697063b7fea788de5d8580a45 (diff) | |
download | hdf5-918973d9fc5b96cd559546eb5e09c87542ce598d.zip hdf5-918973d9fc5b96cd559546eb5e09c87542ce598d.tar.gz hdf5-918973d9fc5b96cd559546eb5e09c87542ce598d.tar.bz2 |
[svn-r17143] Description:
Bring r17084:17142 from trunk to revise_chunks brach
Tested on:
FreeBSD/32 6.3 (duty)
(h5committest not required on this branch)
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/dsets.c b/test/dsets.c index 74bb0c9..81d4b2c 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -5557,6 +5557,7 @@ test_filter_delete(hid_t file) hsize_t dims[2]={20,20}; /* dataspace dimensions */ hsize_t chunk_dims[2]={10,10}; /* chunk dimensions */ int nfilters; /* number of filters in DCPL */ + unsigned flags; /* flags for filter */ herr_t ret; /* generic return value */ int i; @@ -5597,6 +5598,16 @@ test_filter_delete(hid_t file) goto error; } + /* try to get the info for the deflate filter */ + H5E_BEGIN_TRY { + ret=H5Pget_filter_by_id2(dcpl1,H5Z_FILTER_DEFLATE,&flags,NULL,NULL,0,NULL,NULL); + } H5E_END_TRY; + if(ret >=0) { + H5_FAILED(); + printf(" Line %d: Shouldn't have deleted filter!\n",__LINE__); + goto error; + } /* end if */ + /* try to delete the deflate filter again */ H5E_BEGIN_TRY { ret=H5Premove_filter(dcpl1,H5Z_FILTER_DEFLATE); |