summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>2015-09-15 22:34:48 +0200
committerPeter Meerwald-Stadler <pmeerw@pmeerw.net>2016-08-15 23:53:32 +0200
commita5dae93d9fc48c0075a20a0d748a8002ad6a3dd5 (patch)
tree0a4545778bc5a24df710ce0b529a6b828524cc54
parent05d964cf81e70e777e2bdd80f7462b40a7830a66 (diff)
tests: Check pa_rtpoll_run() return value
CID 1138499
-rw-r--r--src/tests/rtpoll-test.c4
1 files 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);