summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/open-null.c
blob: bb418b88b33c20109ec74f4501ffa48c41daa45f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/* Tries to open a file with the null pointer as its name.
   The process must be terminated with exit code -1. */

#include <stddef.h>
#include <syscall.h>
#include "tests/main.h"

void
test_main (void) 
{
  open (NULL);
}