diff --git a/test/runner-unix.c b/test/runner-unix.c index be921dea..2264d1e8 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -267,15 +267,11 @@ int process_wait(process_info_t* vec, int n, int timeout) { kill(p->pid, SIGTERM); } retval = -2; - - /* Wait for thread to finish. */ - r = pthread_join(tid, NULL); - if (r) { - perror("pthread_join"); - retval = -1; - } } + if (pthread_join(tid, NULL)) + abort(); + terminate: close(args.pipe[0]); close(args.pipe[1]);