6 #include <sys/syscall.h>
8 #define GO(syscall_num, param) \
9 fprintf(stderr, "---------------------------------------------------------\n" \
11 "---------------------------------------------------------\n", \
12 syscall_num, #syscall_num, param);
14 #define SY res = syscall
16 #define FAIL assert(res == -1);
17 #define SUCC assert(res != -1);
20 int myerrno = errno; \
26 fprintf(stderr, "Expected error %s (%d), got %d\n", #E, E, myerrno); \
31 fprintf(stderr, "Expected error %s (%d), got success\n", #E, E); \
36 #define FAKE_GO(str) \
37 fprintf(stderr, "---------------------------------------------------------\n" \
39 "---------------------------------------------------------\n", \
42 #define FAKE_SY(msg) \
43 fprintf(stderr, "%s", (msg));
45 /* Module variables. */