We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b3cc8 commit 133e238Copy full SHA for 133e238
1 file changed
tests/api.c
@@ -54,6 +54,7 @@
54
55
#ifdef __linux__
56
#include <unistd.h>
57
+#include <sys/wait.h>
58
#endif
59
60
#include <wolfssl/ssl.h> /* compatibility layer */
@@ -33180,13 +33181,15 @@ static int test_wolfSSL_RAND_poll(void)
33180
33181
{
33182
/* Parent process. */
33183
word64 childrand64 = 0;
33184
+ int waitstatus = 0;
33185
33186
close(pipefds[1]);
33187
ExpectIntEQ(RAND_poll(), 1);
33188
ExpectIntEQ(RAND_bytes(randbuf, sizeof(randbuf)), 1);
33189
ExpectIntEQ(read(pipefds[0], &childrand64, sizeof(childrand64)), sizeof(childrand64));
33190
ExpectBufNE(randbuf, &childrand64, sizeof(randbuf));
33191
close(pipefds[0]);
33192
+ waitpid(pid, &waitstatus, 0);
33193
}
33194
RAND_cleanup();
33195
0 commit comments