mirror of
https://git.freebsd.org/src.git
synced 2026-01-12 06:54:03 +00:00
sound tests: Actually fix format strings
Fixes: eb95b990f8 ("sound tests: Fix format specified for kevent.data")
This commit is contained in:
parent
99cb3dca47
commit
fb99c0ba60
1 changed files with 3 additions and 2 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include <atf-c.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <poll.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
@ -93,7 +94,7 @@ ATF_TC_BODY(poll_kqueue, tc)
|
|||
ATF_REQUIRE_MSG(kevent(kq, NULL, 0, &ev, 1, NULL) == 1,
|
||||
FMT_ERR("kevent"));
|
||||
ATF_REQUIRE_MSG((ev.flags & EV_ERROR) == 0, "EV_ERROR is set");
|
||||
ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", ev.data);
|
||||
ATF_REQUIRE_MSG(ev.data != 0, "data is %" PRId64, ev.data);
|
||||
ATF_REQUIRE_MSG(read(fd, buf, sizeof(buf)) > 0, FMT_ERR("read"));
|
||||
|
||||
EV_SET(&ev, fd, EVFILT_READ, EV_DELETE, 0, 0, 0);
|
||||
|
|
@ -108,7 +109,7 @@ ATF_TC_BODY(poll_kqueue, tc)
|
|||
ATF_REQUIRE_MSG(kevent(kq, NULL, 0, &ev, 1, NULL) == 1,
|
||||
FMT_ERR("kevent"));
|
||||
ATF_REQUIRE_MSG((ev.flags & EV_ERROR) == 0, "EV_ERROR is set");
|
||||
ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", ev.data);
|
||||
ATF_REQUIRE_MSG(ev.data != 0, "data is %" PRId64, ev.data);
|
||||
ATF_REQUIRE_MSG(write(fd, buf, sizeof(buf)) > 0, FMT_ERR("write"));
|
||||
|
||||
EV_SET(&ev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue