summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-25 20:05:19 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-25 20:05:19 +0100
commit613293dd42238fdf241d807dd328e1a2621ff048 (patch)
treee60ae44847a58d0a8b9a98a09a1c5955ea7655f0 /test
parentdbcc2fdb13815a71d2c4b99bb44e8fa437fb4094 (diff)
feat: kernel: Documentation improvements and specs addition.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
-rw-r--r--test/kernel_test/process.test.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/kernel_test/process.test.cc b/test/kernel_test/process.test.cc
index cebc9341..b5d6e06b 100644
--- a/test/kernel_test/process.test.cc
+++ b/test/kernel_test/process.test.cc
@@ -1,5 +1,6 @@
/// \file process.test.cc
/// \brief Process Out tests.
+/// \author Amlal El Mahrouss (amlal at nekernel dot org)
#include <libSystem/SystemKit/System.h>
#include <public/frameworks/KernelTest.fwrk/headers/TestCase.h>
@@ -7,12 +8,18 @@
/// \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;
+ return RtlSpawnProcess("/", 0, nullptr, nullptr, 0) == -1;
+});
+
+KT_DECL_TEST(ProcessHasSucceeded, []() -> bool {
+ /// \note Any process greater than zero, exists within a specific team domain (real-time, high, or low domains).
+ return RtlSpawnProcess("/system/list", 0, nullptr, nullptr, 0) > 0;
});
/// \brief Run 'process' test.
SInt32 KT_TEST_MAIN() {
KT_RUN_TEST(ProcessHasFailed);
+ KT_RUN_TEST(ProcessHasSucceeded);
return KT_TEST_SUCCESS;
}