Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / userprog / child-close.c
1 #include <ctype.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <syscall.h>
5 #include "tests/lib.h"
6
7 const char *test_name = "child-close";
8
9 int
10 main (int argc UNUSED, char *argv[]) 
11 {
12   msg ("begin");
13   if (!isdigit (*argv[1]))
14     fail ("bad command-line arguments");
15   close (atoi (argv[1]));
16   msg ("end");
17
18   return 0;
19 }