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-boundary.c

14 lines
339 B
C
Executable file

/* Creates a file whose name spans the boundary between two pages.
This is valid, so it must succeed. */
#include <syscall.h>
#include "tests/userprog/boundary.h"
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
CHECK (open (copy_string_across_boundary ("sample.txt")) > 1,
"open \"sample.txt\"");
}