summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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;
+}