summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/open-boundary.c
blob: cc8ff8b4b37e0f594eb21bbd6980cdd130b84b47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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\"");
}