1 /* Verifies that mapping over the data segment is disallowed. */
7 #include "tests/main.h"
14 uintptr_t x_page = ROUND_DOWN ((uintptr_t) &x, 4096);
17 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
18 CHECK (mmap (handle, (void *) x_page) == MAP_FAILED,
19 "try to mmap over data segment");