14 CHECK ((handle =
open (
"rox-simple")) > 1,
"open \"rox-simple\"");
16 "read \"rox-simple\"");
18 "try to write \"rox-simple\"");
int open(const char *file)
int write(int fd, const void *buffer, unsigned size)
int read(int fd, void *buffer, unsigned size)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
void test_main(void)
Ensure that the executable of a running process cannot be modified.