summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-08 19:25:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-08 19:25:18 (GMT)
commit95bf191857663a68e37e7bd78122fd681dbb9724 (patch)
treeb313ebac701d73609deed77d65a7df3b5432f71c /test/links.c
parenta89594728adfd0b3aded473b44565c5e5e5dcd18 (diff)
downloadhdf5-95bf191857663a68e37e7bd78122fd681dbb9724.zip
hdf5-95bf191857663a68e37e7bd78122fd681dbb9724.tar.gz
hdf5-95bf191857663a68e37e7bd78122fd681dbb9724.tar.bz2
[svn-r7320] Purpose:
Refactored code Description: Chase changes for the 'fileno' and 'objno' fields in H5G_stat_t Platforms tested: h5committested
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/links.c b/test/links.c
index f84514d..5b97aff 100644
--- a/test/links.c
+++ b/test/links.c
@@ -264,7 +264,7 @@ cklinks(hid_t fapl)
puts(" Unexpected object type should have been a dataset");
goto error;
}
- if (sb1.objno[0]!=sb2.objno[0] || sb1.objno[1]!=sb2.objno[1]) {
+ if (sb1.objno!=sb2.objno) {
H5_FAILED();
puts(" Hard link test failed. Link seems not to point to the ");
puts(" expected file location.");
@@ -278,7 +278,7 @@ cklinks(hid_t fapl)
puts(" Unexpected object type should have been a dataset");
goto error;
}
- if (sb1.objno[0]!=sb2.objno[0] || sb1.objno[1]!=sb2.objno[1]) {
+ if (sb1.objno!=sb2.objno) {
H5_FAILED();
puts(" Soft link test failed. Link seems not to point to the ");
puts(" expected file location.");
@@ -398,10 +398,7 @@ ck_new_links(hid_t fapl)
puts(" Unexpected object type, should have been a dataset");
goto error;
}
- if( sb_dset.objno[0]!=sb_hard1.objno[0] ||
- sb_dset.objno[1]!=sb_hard1.objno[1] ||
- sb_dset.objno[0]!=sb_hard2.objno[0] ||
- sb_dset.objno[1]!=sb_hard2.objno[1] ) {
+ if( sb_dset.objno!=sb_hard1.objno || sb_dset.objno!=sb_hard2.objno ) {
H5_FAILED();
puts(" Hard link test failed. Link seems not to point to the ");
puts(" expected file location.");
@@ -419,10 +416,7 @@ ck_new_links(hid_t fapl)
goto error;
}
- if( sb_dset.objno[0]!=sb_soft1.objno[0] ||
- sb_dset.objno[1]!=sb_soft1.objno[1] ||
- sb_dset.objno[0]!=sb_soft2.objno[0] ||
- sb_dset.objno[1]!=sb_soft2.objno[1] ) {
+ if( sb_dset.objno!=sb_soft1.objno || sb_dset.objno!=sb_soft2.objno ) {
H5_FAILED();
puts(" Soft link test failed. Link seems not to point to the ");
puts(" expected file location.");