diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 07:38:52 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 07:42:26 +0100 |
| commit | 36dee4f0d8ea806b2f061ed66a89e812ab007ed2 (patch) | |
| tree | 8fe0f6895abb96eb40ee390d6411099b4decf489 /test | |
| parent | f7023f6a08e117d483b5928fd4301062a3384abf (diff) | |
feat: test: Add `kout` test and rename DeviceInterface to IDevice in KernelKit.
introduce UserPtr and unburden vettable by removing the IVettable helper.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
| -rw-r--r-- | test/kout_test/kout.test.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/kout_test/kout.test.cc b/test/kout_test/kout.test.cc index 595a9397..639ab94e 100644 --- a/test/kout_test/kout.test.cc +++ b/test/kout_test/kout.test.cc @@ -1,5 +1,17 @@ /// \file kout.test.cc /// \brief Konsole Out tests. -/// \brief Main entrypoint function. -void test_main() {}
\ No newline at end of file +#include <libSystem/SystemKit/System.h> +#include <public/frameworks/KernelTest.fwrk/headers/TestCase.h> + +/// \note Declare tests +KT_DECL_TEST(KOutIsNull, []() -> bool { return PrintGet("/null/") == nullptr; }); +KT_DECL_TEST(KOutIsNotNull, []() -> bool { return PrintGet(nullptr) != nullptr; }); + +/// \brief Run 'kout' test. +SInt32 KT_TEST_MAIN() { + KT_RUN_TEST(KOutIsNull); + KT_RUN_TEST(KOutIsNotNull); + + return KT_TEST_SUCCESS; +}
\ No newline at end of file |
