summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 22:46:59 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 22:46:59 +0100
commitf6ebfb03322353ef19a021524203be1a7c702104 (patch)
tree029c2eac4c47c629dcb1451f73e0708a70b064ea /test
parentee3b7c3b8d1072e2ff424046b2835831b6d57ec5 (diff)
feat: introduce new unit test and CLAUDE.md.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
-rw-r--r--test/kout_test/process.test.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/kout_test/process.test.cc b/test/kout_test/process.test.cc
new file mode 100644
index 00000000..cebc9341
--- /dev/null
+++ b/test/kout_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;
+}