From 843ce7776568ac2d4f71886e95077709b83bc613 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Sat, 21 Sep 2019 14:20:21 -0400 Subject: [PATCH] Stress copyin for the full allocated page (good for lazy lab). --- user/usertests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/usertests.c b/user/usertests.c index af3e5db..fe3ae49 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -1757,7 +1757,7 @@ sbrkarg(char *s) printf("%s: open sbrk failed\n", s); exit(1); } - if ((n = write(fd, a, 10)) < 0) { + if ((n = write(fd, a, PGSIZE)) < 0) { printf("%s: write sbrk failed\n", s); exit(1); }