aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:22:13 +0000
committerChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:23:58 +0000
commit41f2ec3be93a2981e5afcc2569e6abcc64414437 (patch)
tree09ad3b5d214d940e8be23ffe817c1148301a63cf
parente5c0d7020f3d040b28dc7ca0cda9926e07e5aaf4 (diff)
sound tests: Fix select(2) arguments
Fixes: dd81b19ef236 ("sound tests: Test polling") Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--tests/sys/sound/polling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/sound/polling.c b/tests/sys/sound/polling.c
index eefe5d174549..79b731fee00a 100644
--- a/tests/sys/sound/polling.c
+++ b/tests/sys/sound/polling.c
@@ -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,