summaryrefslogtreecommitdiff
path: root/test/selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/selftest.c')
-rw-r--r--test/selftest.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/selftest.c b/test/selftest.c
new file mode 100644
index 0000000..e95b320
--- /dev/null
+++ b/test/selftest.c
@@ -0,0 +1,13 @@
+#include "kernel.h"
+
+void selftest_stack_overflow()
+{
+ klog("recurse..");
+ selftest_stack_overflow();
+}
+
+void selftest_run()
+{
+ klog ("RUNNING SOME IN-KERNEL SELFTESTS");
+ selftest_stack_overflow();
+}