From a5dae93d9fc48c0075a20a0d748a8002ad6a3dd5 Mon Sep 17 00:00:00 2001 From: Peter Meerwald-Stadler Date: Tue, 15 Sep 2015 22:34:48 +0200 Subject: tests: Check pa_rtpoll_run() return value 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 7db7177f..24c66196 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); -- cgit v1.2.3