diff options
author | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-04-24 20:17:10 (GMT) |
---|---|---|
committer | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2019-04-24 20:17:10 (GMT) |
commit | 1d6641ee3af65bdbe5e0f1f8fa56be8ea52dd5d7 (patch) | |
tree | bdd5031361a61f834f2de24cd05518e895ffa9ba /test/vol_plugin.c | |
parent | fc769f425f3b5574eb12522bf4c7bc94f4a236ff (diff) | |
download | hdf5-1d6641ee3af65bdbe5e0f1f8fa56be8ea52dd5d7.zip hdf5-1d6641ee3af65bdbe5e0f1f8fa56be8ea52dd5d7.tar.gz hdf5-1d6641ee3af65bdbe5e0f1f8fa56be8ea52dd5d7.tar.bz2 |
added connector_name test
Diffstat (limited to 'test/vol_plugin.c')
-rw-r--r-- | test/vol_plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/vol_plugin.c b/test/vol_plugin.c index 236a67e..73918ff 100644 --- a/test/vol_plugin.c +++ b/test/vol_plugin.c @@ -219,6 +219,8 @@ test_getters(void) htri_t is_registered = FAIL; hid_t vol_id = H5I_INVALID_HID; hid_t vol_id_out = H5I_INVALID_HID; + char name[64]; + size_t size = 0; TESTING("VOL getters"); @@ -238,6 +240,12 @@ test_getters(void) if(vol_id != vol_id_out) FAIL_PUTS_ERROR("VOL connector IDs don't match"); + if((vol_id_out = H5VLget_connector_name(vol_id_out, name, size)) < 0) + TEST_ERROR; + + printf("%s %ld \n", name, size); + + /* Unregister the connector */ if(H5VLunregister_connector(vol_id) < 0) TEST_ERROR; |