summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-09-02 21:16:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-09-02 21:16:24 (GMT)
commit97f56b57a0e5f60e424cdcb887d243787d3f866a (patch)
tree3716896dcc977cfcffca7742afd1ab13796999b7 /test/links.c
parent8fde009d734d3f20da992bdad8b50f7a1e99099e (diff)
downloadhdf5-97f56b57a0e5f60e424cdcb887d243787d3f866a.zip
hdf5-97f56b57a0e5f60e424cdcb887d243787d3f866a.tar.gz
hdf5-97f56b57a0e5f60e424cdcb887d243787d3f866a.tar.bz2
[svn-r654] Fixed last bug (hah! ;-) for beta release, changed H5Gget_stat to H5Gget_objinfo
and renamed internal functions to match up with the renamed API functions.
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/links.c b/test/links.c
index 0a0f807..013d8b8 100644
--- a/test/links.c
+++ b/test/links.c
@@ -176,8 +176,8 @@ cklinks(void)
}
/* Hard link */
- if (H5Gget_stat(file, "d1", TRUE, &sb1)<0) goto error;
- if (H5Gget_stat(file, "grp1/hard", TRUE, &sb2)<0) goto error;
+ if (H5Gget_objinfo(file, "d1", TRUE, &sb1)<0) goto error;
+ if (H5Gget_objinfo(file, "grp1/hard", TRUE, &sb2)<0) goto error;
if (H5G_DATASET!=sb2.type) {
puts("*FAILED*");
puts(" Unexpected object type should have been a dataset");
@@ -191,7 +191,7 @@ cklinks(void)
}
/* Symbolic link */
- if (H5Gget_stat(file, "grp1/soft", TRUE, &sb2)<0) goto error;
+ if (H5Gget_objinfo(file, "grp1/soft", TRUE, &sb2)<0) goto error;
if (H5G_DATASET!=sb2.type) {
puts("*FAILED*");
puts(" Unexpected object type should have been a dataset");
@@ -214,14 +214,14 @@ cklinks(void)
/* Dangling link */
H5E_BEGIN_TRY {
- status = H5Gget_stat(file, "grp1/dangle", TRUE, &sb2);
+ status = H5Gget_objinfo(file, "grp1/dangle", TRUE, &sb2);
} H5E_END_TRY;
if (status>=0) {
puts("*FAILED*");
- puts(" H5Gget_stat() should have failed for a dangling link.");
+ puts(" H5Gget_objinfo() should have failed for a dangling link.");
goto error;
}
- if (H5Gget_stat(file, "grp1/dangle", FALSE, &sb2)<0) goto error;
+ if (H5Gget_objinfo(file, "grp1/dangle", FALSE, &sb2)<0) goto error;
if (H5G_LINK!=sb2.type) {
puts("*FAILED*");
puts(" Unexpected object type should have been a symbolic link");
@@ -238,14 +238,14 @@ cklinks(void)
/* Recursive link */
H5E_BEGIN_TRY {
- status = H5Gget_stat(file, "grp1/recursive", TRUE, &sb2);
+ status = H5Gget_objinfo(file, "grp1/recursive", TRUE, &sb2);
} H5E_END_TRY;
if (status>=0) {
puts("*FAILED*");
- puts(" H5Gget_stat() should have failed for a recursive link.");
+ puts(" H5Gget_objinfo() should have failed for a recursive link.");
goto error;
}
- if (H5Gget_stat(file, "grp1/recursive", FALSE, &sb2)<0) goto error;
+ if (H5Gget_objinfo(file, "grp1/recursive", FALSE, &sb2)<0) goto error;
if (H5G_LINK!=sb2.type) {
puts("*FAILED*");
puts(" Unexpected object type should have been a symbolic link");