Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / pt-grow-stack.c
1 #include <string.h>
2 #include "tests/arc4.h"
3 #include "tests/cksum.h"
4 #include "tests/lib.h"
5 #include "tests/main.h"
6
7 void
8 test_main (void)
9 {
10   char stack_obj[4096];
11   struct arc4 arc4;
12
13   arc4_init (&arc4, "foobar", 6);
14   memset (stack_obj, 0, sizeof stack_obj);
15   arc4_crypt (&arc4, stack_obj, sizeof stack_obj);
16   msg ("cksum: %lu", cksum (stack_obj, sizeof stack_obj));
17 }