summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-02-09 21:51:06 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-02-09 21:51:06 (GMT)
commitf091546b6aea4eb5bad1ea7bcab1880b36e1034a (patch)
treea1def5177a101107ca9ddb9393db929acd7f2ddf /test
parent9daa1a55cdce6b06ffd7cbc262eb36704032db73 (diff)
downloadhdf5-f091546b6aea4eb5bad1ea7bcab1880b36e1034a.zip
hdf5-f091546b6aea4eb5bad1ea7bcab1880b36e1034a.tar.gz
hdf5-f091546b6aea4eb5bad1ea7bcab1880b36e1034a.tar.bz2
[svn-r18222] Description:
Change name of H5Oexists() routine to H5Oexists_by_name(), to match rest of H5O API routine naming scheme. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug & production (too minor to require h5committest)
Diffstat (limited to 'test')
-rw-r--r--test/links.c132
1 files changed, 66 insertions, 66 deletions
diff --git a/test/links.c b/test/links.c
index 933776a..bf6d1d4 100644
--- a/test/links.c
+++ b/test/links.c
@@ -9131,9 +9131,9 @@ obj_exists(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR
/* Hard links */
- /* Verify that H5Oexists() fails for non-existent link in root group */
+ /* Verify that H5Oexists_by_name() fails for non-existent link in root group */
H5E_BEGIN_TRY {
- status = H5Oexists(fid, "foo", H5P_DEFAULT);
+ status = H5Oexists_by_name(fid, "foo", H5P_DEFAULT);
} H5E_END_TRY
if(status >= 0) TEST_ERROR
@@ -9142,13 +9142,13 @@ obj_exists(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR
if(H5Gclose(gid) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() succeeds for hard linked object */
- if(TRUE != H5Oexists(fid, "group", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() succeeds for hard linked object */
+ if(TRUE != H5Oexists_by_name(fid, "group", H5P_DEFAULT))
TEST_ERROR
- /* Verify that H5Oexists() fails for non-existent link in non-root group */
+ /* Verify that H5Oexists_by_name() fails for non-existent link in non-root group */
H5E_BEGIN_TRY {
- status = H5Oexists(fid, "group/foo", H5P_DEFAULT);
+ status = H5Oexists_by_name(fid, "group/foo", H5P_DEFAULT);
} H5E_END_TRY
if(status >= 0) TEST_ERROR
@@ -9157,29 +9157,29 @@ obj_exists(hid_t fapl, hbool_t new_format)
/* Create dangling soft-link in root group */
if(H5Lcreate_soft("dangle", fid, "soft1", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling soft-link in root group */
- if(FALSE != H5Oexists(fid, "soft1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling soft-link in root group */
+ if(FALSE != H5Oexists_by_name(fid, "soft1", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to object */
if(H5Lcreate_soft("/group", fid, "soft2", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE for soft-link in root group that points to object */
- if(TRUE != H5Oexists(fid, "soft2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE for soft-link in root group that points to object */
+ if(TRUE != H5Oexists_by_name(fid, "soft2", H5P_DEFAULT))
TEST_ERROR
/* Create dangling soft-link in non-root group */
if(H5Lcreate_soft("dangle", fid, "group/soft1", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling soft-link in non-root group */
- if(FALSE != H5Oexists(fid, "group/soft1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling soft-link in non-root group */
+ if(FALSE != H5Oexists_by_name(fid, "group/soft1", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to object */
if(H5Lcreate_soft("/group", fid, "group/soft2", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE for soft-link in non-root group that points to object */
- if(TRUE != H5Oexists(fid, "group/soft2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE for soft-link in non-root group that points to object */
+ if(TRUE != H5Oexists_by_name(fid, "group/soft2", H5P_DEFAULT))
TEST_ERROR
@@ -9187,43 +9187,43 @@ obj_exists(hid_t fapl, hbool_t new_format)
/* Create dangling (file doesn't exist) external link in root group */
if(H5Lcreate_external("nofile", "dangle", fid, "external1", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling (file doesn't exist) external link in root group */
- if(FALSE != H5Oexists(fid, "external1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling (file doesn't exist) external link in root group */
+ if(FALSE != H5Oexists_by_name(fid, "external1", H5P_DEFAULT))
TEST_ERROR
/* Create dangling (object doesn't exist) external link in root group */
if(H5Lcreate_external(filename, "dangle", fid, "external2", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling (object doesn't exist) external link in root group */
- if(FALSE != H5Oexists(fid, "external2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling (object doesn't exist) external link in root group */
+ if(FALSE != H5Oexists_by_name(fid, "external2", H5P_DEFAULT))
TEST_ERROR
/* Create external link in root group that points to object */
if(H5Lcreate_external(filename, "group", fid, "external3", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE for external link in root group that points to object */
- if(TRUE != H5Oexists(fid, "external3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE for external link in root group that points to object */
+ if(TRUE != H5Oexists_by_name(fid, "external3", H5P_DEFAULT))
TEST_ERROR
/* Create dangling (file doesn't exist) external link in non-root group */
if(H5Lcreate_external("nofile", "dangle", fid, "group/external1", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling (file doesn't exist) external link in non-root group */
- if(FALSE != H5Oexists(fid, "group/external1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling (file doesn't exist) external link in non-root group */
+ if(FALSE != H5Oexists_by_name(fid, "group/external1", H5P_DEFAULT))
TEST_ERROR
/* Create dangling (object doesn't exist) external link in non-root group */
if(H5Lcreate_external(filename, "dangle", fid, "group/external2", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE for dangling (object doesn't exist) external link in non-root group */
- if(FALSE != H5Oexists(fid, "group/external2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE for dangling (object doesn't exist) external link in non-root group */
+ if(FALSE != H5Oexists_by_name(fid, "group/external2", H5P_DEFAULT))
TEST_ERROR
/* Create external link in non-root group that points to object */
if(H5Lcreate_external(filename, "group", fid, "group/external3", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE for external link in non-root group that points to object */
- if(TRUE != H5Oexists(fid, "group/external3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE for external link in non-root group that points to object */
+ if(TRUE != H5Oexists_by_name(fid, "group/external3", H5P_DEFAULT))
TEST_ERROR
@@ -9231,85 +9231,85 @@ obj_exists(hid_t fapl, hbool_t new_format)
/* Create soft-link in root group that points to dangling (file doesn't exist) external link */
if(H5Lcreate_soft("external1", fid, "soft-elink1", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "soft-elink1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "soft-elink1", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to dangling (object doesn't exist) external link */
if(H5Lcreate_soft("external2", fid, "soft-elink2", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "soft-elink2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "soft-elink2", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to external link that points to object */
if(H5Lcreate_soft("external3", fid, "soft-elink3", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "soft-elink3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "soft-elink3", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to dangling (file doesn't exist) external link in non-root group */
if(H5Lcreate_soft("group/external1", fid, "soft-elink4", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "soft-elink4", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "soft-elink4", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to dangling (object doesn't exist) external link in non-root group */
if(H5Lcreate_soft("group/external2", fid, "soft-elink5", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "soft-elink5", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "soft-elink5", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in root group that points to external link in non-root group that points to object */
if(H5Lcreate_soft("group/external3", fid, "soft-elink6", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "soft-elink6", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "soft-elink6", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to dangling (file doesn't exist) external link */
if(H5Lcreate_soft("/external1", fid, "group/soft-elink1", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/soft-elink1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/soft-elink1", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to dangling (object doesn't exist) external link */
if(H5Lcreate_soft("/external2", fid, "group/soft-elink2", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/soft-elink2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/soft-elink2", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to external link that points to object */
if(H5Lcreate_soft("/external3", fid, "group/soft-elink3", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "group/soft-elink3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "group/soft-elink3", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to dangling (file doesn't exist) external link in non-root group */
if(H5Lcreate_soft("/group/external1", fid, "group/soft-elink4", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/soft-elink4", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/soft-elink4", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to dangling (object doesn't exist) external link in non-root group */
if(H5Lcreate_soft("/group/external2", fid, "group/soft-elink5", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/soft-elink5", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/soft-elink5", H5P_DEFAULT))
TEST_ERROR
/* Create soft-link in non-root group that points to external link in non-root group that points to object */
if(H5Lcreate_soft("/group/external3", fid, "group/soft-elink6", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "group/soft-elink6", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "group/soft-elink6", H5P_DEFAULT))
TEST_ERROR
@@ -9317,57 +9317,57 @@ obj_exists(hid_t fapl, hbool_t new_format)
/* Create external link in root group that points to dangling soft link in root group */
if(H5Lcreate_external(filename, "soft1", fid, "elink-soft1", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "elink-soft1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "elink-soft1", H5P_DEFAULT))
TEST_ERROR
/* Create external link in root group that points to soft link in root group that points to object */
if(H5Lcreate_external(filename, "soft2", fid, "elink-soft2", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "elink-soft2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "elink-soft2", H5P_DEFAULT))
TEST_ERROR
/* Create external link in root group that points to dangling soft link in non-root group */
if(H5Lcreate_external(filename, "group/soft1", fid, "elink-soft3", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "elink-soft3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "elink-soft3", H5P_DEFAULT))
TEST_ERROR
/* Create external link in root group that points to soft link in root group that points to object */
if(H5Lcreate_external(filename, "group/soft2", fid, "elink-soft4", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "elink-soft4", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "elink-soft4", H5P_DEFAULT))
TEST_ERROR
/* Create external link in non-root group that points to dangling soft link in root group */
if(H5Lcreate_external(filename, "soft1", fid, "group/elink-soft1", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/elink-soft1", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/elink-soft1", H5P_DEFAULT))
TEST_ERROR
/* Create external link in non-root group that points to soft link in root group that points to object */
if(H5Lcreate_external(filename, "soft2", fid, "group/elink-soft2", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "group/elink-soft2", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "group/elink-soft2", H5P_DEFAULT))
TEST_ERROR
/* Create external link in non-root group that points to dangling soft link in non-root group */
if(H5Lcreate_external(filename, "group/soft1", fid, "group/elink-soft3", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns FALSE */
- if(FALSE != H5Oexists(fid, "group/elink-soft3", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns FALSE */
+ if(FALSE != H5Oexists_by_name(fid, "group/elink-soft3", H5P_DEFAULT))
TEST_ERROR
/* Create external link in non-root group that points to soft link in non-root group that points to object */
if(H5Lcreate_external(filename, "group/soft2", fid, "group/elink-soft4", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
- /* Verify that H5Oexists() returns TRUE */
- if(TRUE != H5Oexists(fid, "group/elink-soft4", H5P_DEFAULT))
+ /* Verify that H5Oexists_by_name() returns TRUE */
+ if(TRUE != H5Oexists_by_name(fid, "group/elink-soft4", H5P_DEFAULT))
TEST_ERROR