diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-04 04:35:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-04 04:35:54 (GMT) |
commit | d60efe333661ab0c3a3bc0b7bbb46fc33f16a5ec (patch) | |
tree | a1245e42178484ac2f4ad50a3e9f35b8c93bf371 /test/links.c | |
parent | 5a77933fd554cb0fa5672c4788eea43ef2162742 (diff) | |
download | hdf5-d60efe333661ab0c3a3bc0b7bbb46fc33f16a5ec.zip hdf5-d60efe333661ab0c3a3bc0b7bbb46fc33f16a5ec.tar.gz hdf5-d60efe333661ab0c3a3bc0b7bbb46fc33f16a5ec.tar.bz2 |
[svn-r12860] Description:
Update H5Iget_name() tests to reflect that the name of the object for an
ID can be found in many more situations now.
Tested on:
FreeBSD/32 4.11 (sleipnir)
Diffstat (limited to 'test/links.c')
-rw-r--r-- | test/links.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/links.c b/test/links.c index a625130..6a87637 100644 --- a/test/links.c +++ b/test/links.c @@ -1756,7 +1756,7 @@ external_link_path(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/A/B/C")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -1903,7 +1903,7 @@ external_link_mult(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/A/B/C")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -2029,7 +2029,7 @@ external_link_self(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/X")) TEST_ERROR /* Create object through external link */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -2195,7 +2195,7 @@ external_link_pingpong(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/final")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -2358,7 +2358,7 @@ external_link_toomany(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/final")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -2971,7 +2971,7 @@ external_link_move(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -3016,7 +3016,7 @@ external_link_move(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group2", (size_t)0)) < 0) TEST_ERROR @@ -3052,14 +3052,14 @@ external_link_move(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Move external link back to original location */ if(H5Gmove(fid, "/group2/src3", "/src") < 0) TEST_ERROR /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group3", (size_t)0)) < 0) TEST_ERROR @@ -3204,7 +3204,7 @@ external_link_ride(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -3239,7 +3239,7 @@ external_link_ride(hid_t fapl, hbool_t new_format) /* Check name */ if((name_len = H5Iget_name(gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/dst")) TEST_ERROR /* Create object in external file */ if((gid2 = H5Gcreate(gid, "new_group2", (size_t)0)) < 0) TEST_ERROR @@ -3818,7 +3818,7 @@ ud_hard_links(hid_t fapl) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/group")) TEST_ERROR /* Create object in group */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR @@ -4004,7 +4004,7 @@ ud_link_reregister(hid_t fapl) /* Check name */ if((name_len = H5Iget_name( gid, objname, (size_t)NAME_BUF_SIZE )) < 0) TEST_ERROR - if(name_len != 0) TEST_ERROR + if(HDstrcmp(objname, "/" REREG_TARGET_NAME)) TEST_ERROR /* Create object in group */ if((gid2 = H5Gcreate(gid, "new_group", (size_t)0)) < 0) TEST_ERROR |