Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / userprog / args.c
1 #include "tests/lib.h"
2
3 int
4 main (int argc, char *argv[]) 
5 {
6   int i;
7
8   test_name = "args";
9
10   msg ("begin");
11   msg ("argc = %d", argc);
12   for (i = 0; i <= argc; i++)
13     if (argv[i] != NULL)
14       msg ("argv[%d] = '%s'", i, argv[i]);
15     else
16       msg ("argv[%d] = null", i);
17   msg ("end");
18
19   return 0;
20 }