diff options
Diffstat (limited to 'src/tests/userprog/wait-bad-pid.c')
| -rw-r--r-- | src/tests/userprog/wait-bad-pid.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/userprog/wait-bad-pid.c b/src/tests/userprog/wait-bad-pid.c new file mode 100644 index 0000000..3fe8ee4 --- /dev/null +++ b/src/tests/userprog/wait-bad-pid.c @@ -0,0 +1,11 @@ +/* Waits for an invalid pid. This may fail or terminate the + process with -1 exit code. */ + +#include <syscall.h> +#include "tests/main.h" + +void +test_main (void) +{ + wait ((pid_t) 0x0c020301); +} |
