From f6ebfb03322353ef19a021524203be1a7c702104 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 24 Dec 2025 22:46:59 +0100 Subject: feat: introduce new unit test and CLAUDE.md. Signed-off-by: Amlal El Mahrouss --- test/kout_test/process.test.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/kout_test/process.test.cc (limited to 'test') 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 +#include + +/// \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; +} -- cgit v1.2.3