summaryrefslogtreecommitdiff
path: root/user/usertests.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-11-06 11:18:43 -0500
committerRobert Morris <[email protected]>2019-11-06 11:18:43 -0500
commit16b3b63f06c1ea17da484aeebea4a57fb2a6e44a (patch)
treece4ddb9b3fe85219aa3fb57d290d4e302efe5098 /user/usertests.c
parent028af2764622d489583cd88935cd1d2a7fbe8248 (diff)
downloadxv6-labs-16b3b63f06c1ea17da484aeebea4a57fb2a6e44a.tar.gz
xv6-labs-16b3b63f06c1ea17da484aeebea4a57fb2a6e44a.tar.bz2
xv6-labs-16b3b63f06c1ea17da484aeebea4a57fb2a6e44a.zip
grind: run parallel system calls forever
Diffstat (limited to 'user/usertests.c')
-rw-r--r--user/usertests.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/user/usertests.c b/user/usertests.c
index 8d1d06a..9aa0ed4 100644
--- a/user/usertests.c
+++ b/user/usertests.c
@@ -1038,11 +1038,15 @@ concreate(char *s)
close(open(file, 0));
close(open(file, 0));
close(open(file, 0));
+ close(open(file, 0));
+ close(open(file, 0));
} else {
unlink(file);
unlink(file);
unlink(file);
unlink(file);
+ unlink(file);
+ unlink(file);
}
if(pid == 0)
exit(0);
@@ -1106,7 +1110,7 @@ bigdir(char *s)
name[2] = '0' + (i % 64);
name[3] = '\0';
if(link("bd", name) != 0){
- printf("%s: bigdir link failed\n", s);
+ printf("%s: bigdir link(bd, %s) failed\n", s, name);
exit(1);
}
}
@@ -1335,8 +1339,8 @@ bigfile(char *s)
enum { N = 20, SZ=600 };
int fd, i, total, cc;
- unlink("bigfile");
- fd = open("bigfile", O_CREATE | O_RDWR);
+ unlink("bigfile.dat");
+ fd = open("bigfile.dat", O_CREATE | O_RDWR);
if(fd < 0){
printf("%s: cannot create bigfile", s);
exit(1);
@@ -1350,7 +1354,7 @@ bigfile(char *s)
}
close(fd);
- fd = open("bigfile", 0);
+ fd = open("bigfile.dat", 0);
if(fd < 0){
printf("%s: cannot open bigfile\n", s);
exit(1);
@@ -1379,7 +1383,7 @@ bigfile(char *s)
printf("%s: read bigfile wrong total\n", s);
exit(1);
}
- unlink("bigfile");
+ unlink("bigfile.dat");
}
void