summaryrefslogtreecommitdiff
path: root/src/user/app/tests/tests.h
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /src/user/app/tests/tests.h
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'src/user/app/tests/tests.h')
-rw-r--r--src/user/app/tests/tests.h37
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();