From 1d76943d543eacdc3a5476749d391b732301c79b Mon Sep 17 00:00:00 2001 From: Ben LaHaise Date: Sat, 20 Apr 2002 00:37:26 +0000 Subject: coverage fix for ENOSPC --- harness/cases/10.t | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1