8#include "tests/vm/sample.inc"
12#define ACTUAL ((void *) 0x10000000)
19 CHECK (
create (
"sample.txt",
sizeof sample),
"create \"sample.txt\"");
20 CHECK ((handle =
open (
"sample.txt")) > 1,
"open \"sample.txt\"");
#define ACTUAL
Child process of mmap-exit.
void test_main(void)
tests/main.h
mapid_t mmap(int fd, void *addr)
Project 3 and optionally project 4.
bool create(const char *file, unsigned initial_size)
int open(const char *file)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
void * memcpy(void *dst_, const void *src_, size_t size)
Copies SIZE bytes from SRC to DST, which must not overlap.