aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/exec-once.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/userprog/exec-once.c')
-rw-r--r--src/tests/userprog/exec-once.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/userprog/exec-once.c b/src/tests/userprog/exec-once.c
new file mode 100644
index 0000000..7bae5a1
--- /dev/null
+++ b/src/tests/userprog/exec-once.c
@@ -0,0 +1,11 @@
+/* Executes and waits for a single child process. */
+
+#include <syscall.h>
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+ wait (exec ("child-simple"));
+}