summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-09-21 14:20:21 -0400
committerFrans Kaashoek <[email protected]>2019-09-21 17:28:18 -0400
commit843ce7776568ac2d4f71886e95077709b83bc613 (patch)
treed7185f39aca036e226e08e4df51383dab2127f5d
parentd940fd122d8e04dfc1122ca6b224703eead55f66 (diff)
downloadxv6-labs-843ce7776568ac2d4f71886e95077709b83bc613.tar.gz
xv6-labs-843ce7776568ac2d4f71886e95077709b83bc613.tar.bz2
xv6-labs-843ce7776568ac2d4f71886e95077709b83bc613.zip
Stress copyin for the full allocated page (good for lazy lab).
-rw-r--r--user/usertests.c2
1 files changed, 1 insertions, 1 deletions
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);
}