summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-04-20 00:37:26 +0000
committerBen LaHaise <bcrl@kvack.org>2002-04-20 00:37:26 +0000
commit1d76943d543eacdc3a5476749d391b732301c79b (patch)
treee19be925008e0638efba8965c7e5cfd395cace52
parentba5fc19bb03c934f84e60d7876f377c3d917355b (diff)
downloadlibaio-1d76943d543eacdc3a5476749d391b732301c79b.tar.gz
coverage fix for ENOSPC
-rw-r--r--harness/cases/10.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/harness/cases/10.t b/harness/cases/10.t
index 8a6afe6..8cda16a 100644
--- a/harness/cases/10.t
+++ b/harness/cases/10.t
@@ -29,6 +29,10 @@ int test_main(void)
status |= attempt_rw(rwfd, buf, SIZE, LIMIT-SIZE, WRITE, SIZE);
status |= attempt_rw(rwfd, buf, SIZE, LIMIT-SIZE, READ, SIZE);
+ status |= attempt_rw(rwfd, buf, SIZE, LIMIT, WRITE, -ENOSPC);
+
+ res = ftruncate(rwfd, 0); assert(res == 0);
+
status |= attempt_rw(rwfd, buf, SIZE, 1+LIMIT-SIZE, WRITE, SIZE-1);
status |= attempt_rw(rwfd, buf, SIZE, 1+LIMIT-SIZE, READ, SIZE-1);
status |= attempt_rw(rwfd, buf, SIZE, LIMIT, READ, 0);