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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user