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/create-null.c

12 lines
239 B
C
Raw Normal View History

/* Tries to create a file with the null pointer as its name.
The process must be terminated with exit code -1. */
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
msg ("create(NULL): %d", create (NULL, 0));
}