Skip to content

Commit

Permalink
Add mikecat's argp test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaashoek committed Sep 26, 2016
1 parent 2a67508 commit 907f23a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions usertests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,19 @@ uio()
printf(1, "uio test done\n");
}

void argptest()
{
int fd;
fd = open("init", O_RDONLY);
if (fd < 0) {
printf(2, "open failed\n");
exit();
}
read(fd, sbrk(0) - 1, -1);
close(fd);
printf(1, "arg test passed\n");
}

unsigned long randstate = 1;
unsigned int
rand()
Expand All @@ -1743,6 +1756,7 @@ main(int argc, char *argv[])
}
close(open("usertests.ran", O_CREATE));

argptest();
createdelete();
linkunlink();
concreate();
Expand Down

0 comments on commit 907f23a

Please sign in to comment.