sound tests: Fix select(2) arguments

Fixes:		dd81b19ef2 ("sound tests: Test polling")
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Christos Margiolis
2025-11-11 13:22:13 +01:00
parent e5c0d7020f
commit 41f2ec3be9
+1 -1
View File
@@ -178,7 +178,7 @@ ATF_TC_BODY(poll_select, tc)
FD_ZERO(&fds[1]);
FD_SET(fd, &fds[0]);
FD_SET(fd, &fds[1]);
ATF_REQUIRE_MSG(select(fd + 1, &fds[0], &fds[1], NULL, NULL) > 0,
ATF_REQUIRE_MSG(select(fd + 2, &fds[0], &fds[1], NULL, NULL) > 0,
FMT_ERR("select"));
if (FD_ISSET(fd, &fds[0])) {
ATF_REQUIRE_MSG(read(fd, buf, sizeof(buf)) > 0,