diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2013-05-06 20:51:26 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2013-05-06 20:51:26 (GMT) |
commit | 8ec42ced8063d739ec6c3d656b0556c3aafbc395 (patch) | |
tree | 39c0e72f6d25b16ee346b15d698a8cd26702733a /test | |
parent | 8f3aee85de3d7202e82379647f8411258e7321fb (diff) | |
download | hdf5-8ec42ced8063d739ec6c3d656b0556c3aafbc395.zip hdf5-8ec42ced8063d739ec6c3d656b0556c3aafbc395.tar.gz hdf5-8ec42ced8063d739ec6c3d656b0556c3aafbc395.tar.bz2 |
[svn-r23675] Issue 8380 - H5Zunregister caused seg fault. This is the followup commit. Quincey
reviewed my previous commit and suggested me to use H5I_iterate to iterate through
all opened objects in H5Z_unregister. I changed it in this commit.
Tested with h5committest.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/unregister.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8904fee..766ed7b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -397,6 +397,8 @@ ADD_TEST ( testmeta.h5 tstint1.h5 tstint2.h5 + unregister_filter_1.h5 + unregister_filter_2.h5 ) SET (H5_TESTS @@ -453,6 +455,7 @@ SET (H5_TESTS file_image enc_dec_plist enc_dec_plist_with_endianess + unregister ) FOREACH (test ${H5_TESTS}) @@ -728,6 +731,7 @@ IF (HDF5_TEST_VFD) tcheck_version testmeta links_env + unregister ) IF (DIRECT_VFD) diff --git a/test/unregister.c b/test/unregister.c index 88f4d1b..297035d 100644 --- a/test/unregister.c +++ b/test/unregister.c @@ -145,7 +145,6 @@ test_unregister_filters(hid_t my_fapl) goto error; } /* end if */ - /* Close the group */ if(H5Gclose(gid) < 0) goto error; @@ -176,7 +175,6 @@ test_unregister_filters(hid_t my_fapl) goto error; /* Unregister the filter before closing the dataset. It should fail */ - /*if(H5Zunregister(H5Z_FILTER_DUMMY) < 0) goto error;*/ H5E_BEGIN_TRY { ret = H5Zunregister(H5Z_FILTER_DUMMY); } H5E_END_TRY; |