aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/userprog/halt.c')
-rw-r--r--src/tests/userprog/halt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/userprog/halt.c b/src/tests/userprog/halt.c
new file mode 100644
index 0000000..4a99bce
--- /dev/null
+++ b/src/tests/userprog/halt.c
@@ -0,0 +1,11 @@
+/* Tests the halt system call. */
+
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+ halt ();
+ fail ("should have halted");
+}