summaryrefslogtreecommitdiff
path: root/user/usertests.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-09-19 15:22:45 -0400
committerFrans Kaashoek <[email protected]>2019-09-19 15:22:45 -0400
commit25e6803e171fd0cbbf71f889ba2d80621e0336f3 (patch)
treea8a62abce40d4626c673cddb261da83a5416cd5c /user/usertests.c
parent3f6e372a29709225f53f4d326170af1aeecb2cf5 (diff)
downloadxv6-labs-25e6803e171fd0cbbf71f889ba2d80621e0336f3.tar.gz
xv6-labs-25e6803e171fd0cbbf71f889ba2d80621e0336f3.tar.bz2
xv6-labs-25e6803e171fd0cbbf71f889ba2d80621e0336f3.zip
a comment
Diffstat (limited to 'user/usertests.c')
-rw-r--r--user/usertests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/usertests.c b/user/usertests.c
index 6fd8c29..37d61f3 100644
--- a/user/usertests.c
+++ b/user/usertests.c
@@ -598,6 +598,7 @@ forkforkfork(char *s)
sleep(10); // one second
}
+// allocate all mem, free it, and allocate again
void
mem(char *s)
{
@@ -1907,7 +1908,8 @@ stacktest(char *s)
exit(xstatus);
}
-// 1 if successful
+// run each test in its own process. run returns 1 if child's exit()
+// indicates success.
int
run(void f(char *), char *s) {
int pid;