diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-21 02:08:56 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-21 02:08:56 (GMT) |
commit | 8fc9a9ba251ea34ac5a943ad8eb7f6cf012b929d (patch) | |
tree | 4366c624c61b639c66910e610658ba77a9207cbc /test/links.c | |
parent | 502dd5500bea7056add8e94403ac92472c3c4a43 (diff) | |
download | hdf5-8fc9a9ba251ea34ac5a943ad8eb7f6cf012b929d.zip hdf5-8fc9a9ba251ea34ac5a943ad8eb7f6cf012b929d.tar.gz hdf5-8fc9a9ba251ea34ac5a943ad8eb7f6cf012b929d.tar.bz2 |
[svn-r27834] Description:
Close FAPL for external link test, to fix infinite loop closing the library.
Tested on:
MacOSX/64 10.10.5 (amazon) w/serial
(too minor to require h5committest)
Diffstat (limited to 'test/links.c')
-rw-r--r-- | test/links.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/links.c b/test/links.c index 887a72c..577834d 100644 --- a/test/links.c +++ b/test/links.c @@ -6234,7 +6234,7 @@ error: static int external_link_strong(hid_t fapl, hbool_t new_format) { - hid_t my_fapl; /* File access property list */ + hid_t my_fapl = (-1); /* File access property list */ hid_t fid1 = (-1), fid2 = (-1); /* File ID */ hid_t gid1 = (-1), gid2 = (-1); /* Group IDs */ char objname[NAME_BUF_SIZE]; /* Object name */ @@ -6283,11 +6283,15 @@ external_link_strong(hid_t fapl, hbool_t new_format) if(H5Gclose(gid2) < 0) TEST_ERROR if(H5Fclose(fid2) < 0) TEST_ERROR + /* Close fapl */ + if(H5Pclose(my_fapl) < 0) TEST_ERROR + PASSED(); return 0; error: H5E_BEGIN_TRY { + H5Pclose(my_fapl); H5Gclose(fapl); H5Gclose(gid2); H5Gclose(gid1); |