3 #include "tests/vm/sample.inc"
4 #include "tests/arc4.h"
6 #include "tests/main.h"
8 #define ACTUAL ((void *) 0x10000000)
16 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
17 CHECK ((map = mmap (handle, ACTUAL)) != MAP_FAILED, "mmap \"sample.txt\"");
21 if (memcmp (ACTUAL, sample, strlen (sample)))
22 fail ("read of mmap'd file reported bad data");