From b8a536b20b1621e360ac5bb29fe4b3f6a99669c1 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 23 Oct 2001 14:20:47 -0500 Subject: [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) --- test/big.c | 5 +++-- 1 file 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=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; -- cgit v0.12