summaryrefslogtreecommitdiff
path: root/src/kernel/tests/base.h
diff options
context:
space:
mode:
authordzwdz2022-08-05 15:06:48 +0200
committerdzwdz2022-08-05 15:06:48 +0200
commitf6b139d55e7fa9ec5498eeadfdf3fdd5d0a927f4 (patch)
treee19ce224e1431ee7c54fc7f4785303e4e6999024 /src/kernel/tests/base.h
parent27124aab29d54ba9f228dee18a48e903e222812a (diff)
move the mount_resolve test to userland, remove the kernel selftests
Diffstat (limited to 'src/kernel/tests/base.h')
-rw-r--r--src/kernel/tests/base.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/kernel/tests/base.h b/src/kernel/tests/base.h
deleted file mode 100644
index ec314c5..0000000
--- a/src/kernel/tests/base.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-#include <kernel/arch/generic.h>
-#include <kernel/util.h>
-#include <stdbool.h>
-
-extern bool _did_tests_fail;
-
-// tests MUST be used
-#pragma GCC diagnostic error "-Wunused-function"
-
-#define TEST(name) \
- static void __test_##name(void)
-
-#define TEST_RUN(name) \
- __test_##name();
-
-#define TEST_COND(cond) \
- if (!(cond)) { \
- _did_tests_fail = true; \
- kprintf("test failed at " __FILE__ ":" NUM2STR(__LINE__) " "); \
- }