Initial file system tests.
[pintos-anon] / grading / filesys / create.inc
1 /* -*- c -*- */
2
3 #include <stdio.h>
4 #include <syscall.h>
5 #include "fslib.h"
6
7 static char buf[TEST_SIZE];
8
9 int
10 main (void) 
11 {
12   msg ("begin");
13   check (create ("testfile", TEST_SIZE), "create testfile");
14   check_file ("testfile", buf, TEST_SIZE);
15   msg ("end");
16   return 0;
17 }