diff --git a/test/testcpg2.c b/test/testcpg2.c index ff53edd9..f017289c 100644 --- a/test/testcpg2.c +++ b/test/testcpg2.c @@ -84,7 +84,7 @@ int main(int argc, char** argv) { pfd.fd = fd; pfd.events = POLLIN; - poll (&pfd, 1, 1000); + assert(poll (&pfd, 1, 1000) == 1); cpg_dispatch(handle, CS_DISPATCH_ALL); return (0); }