summaryrefslogtreecommitdiffhomepage
path: root/tests/KernelTestKit/KernelTest.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-24 05:08:21 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-24 05:08:21 +0100
commit77a1bd038f4288a7c24cfe52ad9824ca947c6671 (patch)
treed7e3fe10fce24ddc6a2b3db15a6dc9d6aeee2451 /tests/KernelTestKit/KernelTest.h
parent66be78af046c20bd110793c03062a3ff67b04f9c (diff)
kernel(feat): Add basic wide system bug check (memory check), other
changes have been made too, see commit details for more information. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'tests/KernelTestKit/KernelTest.h')
-rw-r--r--tests/KernelTestKit/KernelTest.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/KernelTestKit/KernelTest.h b/tests/KernelTestKit/KernelTest.h
deleted file mode 100644
index 3fb0f3de..00000000
--- a/tests/KernelTestKit/KernelTest.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#define NE_TEST_VERSION_BCD (0x0001)
-#define NE_TEST_VERSION "0.0.1"
-
-#define NE_TEST_FAILURE (1)
-
-#define NE_TEST_SUCCESS (0)
-
-#define NE_DECL_TEST(NAME, FN) \
- class NAME final \
- { \
- public: \
- int Run(); \
- const char* ToString(); \
- }; \
- inline int NAME::Run() \
- { \
- return FN() == 0; \
- } \
- inline const char* NAME::ToString() \
- { \
- return #FN; \
- }
-
-NE_DECL_TEST(ALWAYS_BREAK, []() -> bool { return false; });
-NE_DECL_TEST(ALWAYS_GOOD, []() -> bool { return true; }); \ No newline at end of file