summaryrefslogtreecommitdiffstats
path: root/test/gheap.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/gheap.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/gheap.c')
-rw-r--r--test/gheap.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/gheap.c b/test/gheap.c
index 85e09be..7d651e5 100644
--- a/test/gheap.c
+++ b/test/gheap.c
@@ -65,7 +65,7 @@ test_1 (hid_t fapl)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0)
goto error;
if (NULL==(f=H5I_object(file))) {
- FAILED();
+ H5_FAILED();
puts(" Unable to create file");
goto error;
}
@@ -81,11 +81,11 @@ test_1 (hid_t fapl)
H5Eclear ();
status = H5HG_insert (f, size, out, obj+i);
if (status<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to insert object into global heap");
nerrors++;
} else if (i && H5F_addr_gt (obj[i-1].addr, obj[i].addr)) {
- FAILED();
+ H5_FAILED();
puts(" Collection addresses are not monotonically increasing");
nerrors++;
}
@@ -99,11 +99,11 @@ test_1 (hid_t fapl)
memset (out, 'A'+i%26, size);
H5Eclear ();
if (NULL==H5HG_read (f, obj+i, in)) {
- FAILED();
+ H5_FAILED();
puts(" Unable to read object");
nerrors++;
} else if (memcmp (in, out, size)) {
- FAILED();
+ H5_FAILED();
puts(" Value read doesn't match value written");
nerrors++;
}
@@ -159,7 +159,7 @@ test_2 (hid_t fapl)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0)
goto error;
if (NULL==(f=H5I_object(file))) {
- FAILED();
+ H5_FAILED();
puts(" Unable to create file");
goto error;
}
@@ -172,7 +172,7 @@ test_2 (hid_t fapl)
memset (out, 'A'+i%26, size);
H5Eclear ();
if (H5HG_insert (f, size, out, obj+i)<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to insert object into global heap");
nerrors++;
}
@@ -186,11 +186,11 @@ test_2 (hid_t fapl)
memset (out, 'A'+i%26, size);
H5Eclear ();
if (NULL==H5HG_read (f, obj+i, in)) {
- FAILED();
+ H5_FAILED();
puts(" Unable to read object");
nerrors++;
} else if (memcmp (in, out, size)) {
- FAILED();
+ H5_FAILED();
puts(" Value read doesn't match value written");
nerrors++;
}
@@ -246,7 +246,7 @@ test_3 (hid_t fapl)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0)
goto error;
if (NULL==(f=H5I_object(file))) {
- FAILED();
+ H5_FAILED();
puts(" Unable to create file");
goto error;
}
@@ -258,7 +258,7 @@ test_3 (hid_t fapl)
H5Eclear ();
status = H5HG_insert (f, size, out, obj+i);
if (status<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to insert object into global heap");
nerrors++;
}
@@ -268,7 +268,7 @@ test_3 (hid_t fapl)
for (i=0; i<1024; i++) {
status = H5HG_remove (f, obj+i);
if (status<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to remove object");
nerrors++;
}
@@ -325,7 +325,7 @@ test_4 (hid_t fapl)
if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl))<0)
goto error;
if (NULL==(f=H5I_object(file))) {
- FAILED();
+ H5_FAILED();
puts(" Unable to create file");
goto error;
}
@@ -337,7 +337,7 @@ test_4 (hid_t fapl)
H5Eclear ();
status = H5HG_insert (f, size, out, obj+i);
if (status<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to insert object into global heap");
nerrors++;
}
@@ -351,7 +351,7 @@ test_4 (hid_t fapl)
H5Eclear ();
status = H5HG_remove (f, obj+i-1);
if (status<0) {
- FAILED();
+ H5_FAILED();
puts(" Unable to remove object");
nerrors++;
}