summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-25 17:03:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-25 17:03:29 (GMT)
commita319837a4fd95c29e6754593264c1429deaa506b (patch)
tree930ac1ddbc4381c1ce5ef33f00c96f9073ff3e9a /test/links.c
parent51bd03c8a5e3c1ffbf46edb9feee1f8776e4e462 (diff)
downloadhdf5-a319837a4fd95c29e6754593264c1429deaa506b.zip
hdf5-a319837a4fd95c29e6754593264c1429deaa506b.tar.gz
hdf5-a319837a4fd95c29e6754593264c1429deaa506b.tar.bz2
[svn-r3326] Purpose:
Clean up warnings Description: The "FAILED" macro is defined by Windows and is causing warnings and potential errors when compiled on that platform. Solution: Change our macro from FAILED to H5_FAILED. Platforms tested: FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/links.c b/test/links.c
index 3a1d659..04a9e27 100644
--- a/test/links.c
+++ b/test/links.c
@@ -122,12 +122,12 @@ cklinks(hid_t fapl)
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) {
- FAILED();
+ H5_FAILED();
puts(" Unexpected object type should have been a dataset");
goto error;
}
if (sb1.objno[0]!=sb2.objno[0] || sb1.objno[1]!=sb2.objno[1]) {
- FAILED();
+ H5_FAILED();
puts(" Hard link test failed. Link seems not to point to the ");
puts(" expected file location.");
goto error;
@@ -136,12 +136,12 @@ cklinks(hid_t fapl)
/* Symbolic link */
if (H5Gget_objinfo(file, "grp1/soft", TRUE, &sb2)<0) goto error;
if (H5G_DATASET!=sb2.type) {
- FAILED();
+ H5_FAILED();
puts(" Unexpected object type should have been a dataset");
goto error;
}
if (sb1.objno[0]!=sb2.objno[0] || sb1.objno[1]!=sb2.objno[1]) {
- FAILED();
+ H5_FAILED();
puts(" Soft link test failed. Link seems not to point to the ");
puts(" expected file location.");
goto error;
@@ -150,7 +150,7 @@ cklinks(hid_t fapl)
goto error;
}
if (strcmp(linkval, "/d1")) {
- FAILED();
+ H5_FAILED();
puts(" Soft link test failed. Wrong link value");
goto error;
}
@@ -160,13 +160,13 @@ cklinks(hid_t fapl)
status = H5Gget_objinfo(file, "grp1/dangle", TRUE, &sb2);
} H5E_END_TRY;
if (status>=0) {
- FAILED();
+ H5_FAILED();
puts(" H5Gget_objinfo() should have failed for a dangling link.");
goto error;
}
if (H5Gget_objinfo(file, "grp1/dangle", FALSE, &sb2)<0) goto error;
if (H5G_LINK!=sb2.type) {
- FAILED();
+ H5_FAILED();
puts(" Unexpected object type should have been a symbolic link");
goto error;
}
@@ -174,7 +174,7 @@ cklinks(hid_t fapl)
goto error;
}
if (strcmp(linkval, "foobar")) {
- FAILED();
+ H5_FAILED();
puts(" Dangling link test failed. Wrong link value");
goto error;
}
@@ -184,13 +184,13 @@ cklinks(hid_t fapl)
status = H5Gget_objinfo(file, "grp1/recursive", TRUE, &sb2);
} H5E_END_TRY;
if (status>=0) {
- FAILED();
+ H5_FAILED();
puts(" H5Gget_objinfo() should have failed for a recursive link.");
goto error;
}
if (H5Gget_objinfo(file, "grp1/recursive", FALSE, &sb2)<0) goto error;
if (H5G_LINK!=sb2.type) {
- FAILED();
+ H5_FAILED();
puts(" Unexpected object type should have been a symbolic link");
goto error;
}
@@ -198,7 +198,7 @@ cklinks(hid_t fapl)
goto error;
}
if (strcmp(linkval, "/grp1/recursive")) {
- FAILED();
+ H5_FAILED();
puts(" Recursive link test failed. Wrong link value");
goto error;
}