diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2017-05-24 13:41:26 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2017-05-24 13:41:26 (GMT) |
commit | 479f326a267ca5ffacc2012f33674c66cf2907d8 (patch) | |
tree | 19d03323c3ceb6e6b9e4da5e3529aeec74992974 /test/swmr.c | |
parent | e5a57c97aa43d6c76d1bb1fe64d24aaa0bbbb7d3 (diff) | |
download | hdf5-479f326a267ca5ffacc2012f33674c66cf2907d8.zip hdf5-479f326a267ca5ffacc2012f33674c66cf2907d8.tar.gz hdf5-479f326a267ca5ffacc2012f33674c66cf2907d8.tar.bz2 |
* Added new public H5FDdriver_query() API call.
* Changed return type of H5FD_driver_query() to herr_t.
* Updated swmr.c to use H5FDdriver_query() instead of the private call.
* Added some flags tests to vfd.c.
Diffstat (limited to 'test/swmr.c')
-rw-r--r-- | test/swmr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/swmr.c b/test/swmr.c index 9239ca2..3b1bd09 100644 --- a/test/swmr.c +++ b/test/swmr.c @@ -120,7 +120,6 @@ test_metadata_read_attempts(hid_t in_fapl) hid_t file_fapl = -1; /* The file's access property list */ hid_t fid = -1, fid1 = -1, fid2 = -1; /* File IDs */ hid_t driver_id = -1; /* ID for this VFD */ - H5FD_class_t *driver = NULL; /* Pointer to VFD class struct */ unsigned long driver_flags = 0; /* VFD feature flags */ hbool_t compat_w_default_vfd; /* current VFD compat w/ H5P_DEFAULT? */ unsigned attempts; /* The # of read attempts */ @@ -138,9 +137,7 @@ test_metadata_read_attempts(hid_t in_fapl) */ if ((driver_id = H5Pget_driver(in_fapl)) < 0) FAIL_STACK_ERROR - if (NULL == (driver = (H5FD_class_t *)H5I_object_verify(driver_id, H5I_VFL))) - FAIL_STACK_ERROR - if (H5FD_driver_query(driver, &driver_flags) < 0) + if (H5FDdriver_query(driver_id, &driver_flags) < 0) FAIL_STACK_ERROR compat_w_default_vfd = (driver_flags & H5FD_FEAT_DEFAULT_VFD_COMPATIBLE) ? TRUE : FALSE; |