diff --git a/tests/integration.c b/tests/integration.c index f57b165..0e65e27 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -39,6 +39,10 @@ int main(void) { /* 2. start the looper */ pid_t pid = fork(); + if (pid < 0) { + perror("fork"); + return 1; + } if (pid == 0) { execl("./looper", "looper", NULL); perror("execl");