From 1c6e3d729a2bb602ee0516f6be691941eba4b185 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 10 Jun 2025 06:23:06 -0400 Subject: [PATCH] Check that fork() returns >= 0 in RAND_poll fork test --- tests/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/api.c b/tests/api.c index e95d014b3..e401e5cfa 100644 --- a/tests/api.c +++ b/tests/api.c @@ -33165,6 +33165,7 @@ static int test_wolfSSL_RAND_poll(void) ExpectIntEQ(pipe(pipefds), 0); pid = fork(); + ExpectIntGE(pid, 0); if (pid == 0) { ssize_t n_written = 0;