This repository has been archived on 2021-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
OS/pintos-env/pintos/tests/userprog/open-null.c

13 lines
224 B
C
Raw Permalink Normal View History

/* 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);
}