28e7b80d8a8bcf6e0011753c5f28a9d6ebe75b2a
[pintos-anon] / src / tests / userprog / open-empty.c
1 #include <syscall.h>
2 #include "tests/lib.h"
3 #include "tests/main.h"
4
5 void
6 test_main (void) 
7 {
8   int handle = open ("");
9   if (handle != -1)
10     fail ("open() returned %d instead of -1", handle);
11 }