git: 41f2ec3be93a - main - sound tests: Fix select(2) arguments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Nov 2025 12:24:10 UTC
The branch main has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=41f2ec3be93a2981e5afcc2569e6abcc64414437
commit 41f2ec3be93a2981e5afcc2569e6abcc64414437
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-11-11 12:22:13 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-11-11 12:23:58 +0000
sound tests: Fix select(2) arguments
Fixes: dd81b19ef236 ("sound tests: Test polling")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
tests/sys/sound/polling.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,