random: Fix behavior of kernel option "-rs".
[pintos-anon] / src / tests / userprog / open-null.c
1 /* Tries to open a file with the null pointer as its name.
2    The process must be terminated with exit code -1. */
3
4 #include <stddef.h>
5 #include <syscall.h>
6 #include "tests/main.h"
7
8 void
9 test_main (void) 
10 {
11   open (NULL);
12 }