3 #include "tests/vm/sample.inc"
5 #include "tests/main.h"
7 #define ACTUAL ((void *) 0x10000000)
14 CHECK (create ("sample.txt", sizeof sample), "create \"sample.txt\"");
15 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
16 CHECK (mmap (handle, ACTUAL) != MAP_FAILED, "mmap \"sample.txt\"");
17 memcpy (ACTUAL, sample, sizeof sample);