diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-24 22:52:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-24 22:52:38 +0100 |
| commit | 654578c8d62a26672a9d3131a7d3fdd08a0faa96 (patch) | |
| tree | 16ccebe19c6585c40d475645b554e1096a2ce735 /test/kernel_test/process.test.cc | |
| parent | f6ebfb03322353ef19a021524203be1a7c702104 (diff) | |
refactor: test: move tests into categories.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/kernel_test/process.test.cc')
| -rw-r--r-- | test/kernel_test/process.test.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/kernel_test/process.test.cc b/test/kernel_test/process.test.cc new file mode 100644 index 00000000..cebc9341 --- /dev/null +++ b/test/kernel_test/process.test.cc @@ -0,0 +1,18 @@ +/// \file process.test.cc +/// \brief Process Out tests. + +#include <libSystem/SystemKit/System.h> +#include <public/frameworks/KernelTest.fwrk/headers/TestCase.h> + +/// \note Declare tests +KT_DECL_TEST(ProcessHasFailed, []() -> bool { + /// \todo we return -1 here, should we document that or classify as common knowledge? + return RtlSpawnProcess("/system/ls", 0, nullptr, nullptr, 0) == -1; +}); + +/// \brief Run 'process' test. +SInt32 KT_TEST_MAIN() { + KT_RUN_TEST(ProcessHasFailed); + + return KT_TEST_SUCCESS; +} |
