2 #include "tests/vm/sample.inc"
4 #include "tests/main.h"
6 #define ACTUAL ((void *) 0x10000000)
14 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
15 CHECK ((map = mmap (handle, ACTUAL)) != MAP_FAILED, "mmap \"sample.txt\"");
19 fail ("unmapped memory is readable (%d)", *(int *) ACTUAL);