[pulseaudio-discuss] [PATCH v2 10/12] tests: Check pa_rtpoll_run() return value
Peter Meerwald
pmeerw at pmeerw.net
Tue Sep 15 15:01:48 PDT 2015
CID 1138499
---
src/tests/rtpoll-test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tests/rtpoll-test.c b/src/tests/rtpoll-test.c
index 7db7177..24c6619 100644
--- a/src/tests/rtpoll-test.c
+++ b/src/tests/rtpoll-test.c
@@ -60,7 +60,7 @@ START_TEST (rtpoll_test) {
pa_rtpoll_set_timer_relative(p, 10000000); /* 10 s */
- pa_rtpoll_run(p);
+ fail_unless(pa_rtpoll_run(p) >= 0);
pa_rtpoll_item_free(i);
@@ -72,7 +72,7 @@ START_TEST (rtpoll_test) {
pollfd->fd = 0;
pollfd->events = POLLIN;
- pa_rtpoll_run(p);
+ fail_unless(pa_rtpoll_run(p) >= 0);
pa_rtpoll_item_free(i);
--
1.9.1
More information about the pulseaudio-discuss
mailing list