summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-10-23 19:20:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-10-23 19:20:47 (GMT)
commitb8a536b20b1621e360ac5bb29fe4b3f6a99669c1 (patch)
tree71ee1f7c1b8001607b7e3a8753e88eef885eb92e
parentaeaa30b4e133a555a57836e31fadf9a2597fe6c1 (diff)
downloadhdf5-b8a536b20b1621e360ac5bb29fe4b3f6a99669c1.zip
hdf5-b8a536b20b1621e360ac5bb29fe4b3f6a99669c1.tar.gz
hdf5-b8a536b20b1621e360ac5bb29fe4b3f6a99669c1.tar.bz2
[svn-r4564] Purpose:
Bug fix Description: 'big' test was not detecting that the AFS quota had been hit when running under FreeBSD. Solution: Amending quota checking code to detect errors on file closes as well as opens, seeks and writes. Platforms tested: FreeBSD 4.4 (hawkwind)
-rw-r--r--test/big.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/big.c b/test/big.c
index 42819de..8387160 100644
--- a/test/big.c
+++ b/test/big.c
@@ -141,7 +141,8 @@ enough_room(hid_t fapl)
done:
for (i=0; i<NELMTS(fd) && fd[i]>=0; i++) {
HDsnprintf(name, sizeof name, filename, i);
- close(fd[i]);
+ if(close(fd[i])<0)
+ ret_value=0;
unlink(name);
}
@@ -219,6 +220,7 @@ writer (hid_t fapl, int wrt_n)
H5P_DEFAULT, buf)<0) goto error;
}
+ fclose(out);
if (H5Dclose (d1)<0) goto error;
if (H5Dclose (d2)<0) goto error;
if (H5Sclose (mem_space)<0) goto error;
@@ -226,7 +228,6 @@ writer (hid_t fapl, int wrt_n)
if (H5Sclose (space2)<0) goto error;
if (H5Fclose (file)<0) goto error;
free (buf);
- fclose(out);
PASSED();
return 0;