diff options
Diffstat (limited to 'pintos-progos/tests/userprog/wait-twice.c')
| -rw-r--r-- | pintos-progos/tests/userprog/wait-twice.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pintos-progos/tests/userprog/wait-twice.c b/pintos-progos/tests/userprog/wait-twice.c deleted file mode 100644 index 785e684..0000000 --- a/pintos-progos/tests/userprog/wait-twice.c +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | /* Wait for a subprocess to finish, twice. | ||
| 2 | The first call must wait in the usual way and return the exit code. | ||
| 3 | The second wait call must return -1 immediately. */ | ||
| 4 | |||
| 5 | #include <syscall.h> | ||
| 6 | #include "tests/lib.h" | ||
| 7 | #include "tests/main.h" | ||
| 8 | |||
| 9 | void | ||
| 10 | test_main (void) | ||
| 11 | { | ||
| 12 | pid_t child = exec ("child-simple"); | ||
| 13 | msg ("wait(exec()) = %d", wait (child)); | ||
| 14 | msg ("wait(exec()) = %d", wait (child)); | ||
| 15 | } | ||
