diff options
Diffstat (limited to 'src/user/app/tests/tests.h')
-rw-r--r-- | src/user/app/tests/tests.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/user/app/tests/tests.h b/src/user/app/tests/tests.h deleted file mode 100644 index 5037e1a..0000000 --- a/src/user/app/tests/tests.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once -#include <camellia/syscalls.h> -#include <stdio.h> -#include <stdlib.h> - -#define TMPFILEPATH "/tmp/.test_internal" - -void run_test(void (*fn)()); - -void r_k_fdlimit(void); -void r_k_fs(void); -void r_k_misc(void); -void r_k_miscsyscall(void); -void r_k_path(void); -void r_k_threads(void); -void r_libc_esemaphore(void); -void r_libc_setjmp(void); -void r_libc_string(void); -void r_s_printf(void); -void r_s_ringbuf(void); - -extern FILE *fail_trig; - -int forkpipe(FILE **f, hid_t *h); - -#define argify(str) str, sizeof(str) - 1 -#define test_fail() do { \ - fprintf(fail_trig, "%s():%u", __func__, __LINE__); \ - fflush(fail_trig); \ - exit(0); \ -} while (0) -#define test_failf(fmt, ...) do { \ - fprintf(fail_trig, "%s():%u " fmt, __func__, __LINE__, __VA_ARGS__); \ - fflush(fail_trig); \ - exit(0); \ -} while (0) -#define test(cond) if (!(cond)) test_fail(); |