From 50a501dbe89ec8f9a76540015890dd361f1ec8a1 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 10 May 2006 19:24:40 +0000 Subject: Merge-in RTEMS port patch by Phil Torre , alpha release. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@433 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/ioq_tcp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pjlib/src/pjlib-test/ioq_tcp.c') diff --git a/pjlib/src/pjlib-test/ioq_tcp.c b/pjlib/src/pjlib-test/ioq_tcp.c index c60d614f..8f2d74d0 100644 --- a/pjlib/src/pjlib-test/ioq_tcp.c +++ b/pjlib/src/pjlib-test/ioq_tcp.c @@ -343,6 +343,13 @@ static int compliance_test_0(void) callback_connect_status = -2; } + if (status > pending_op) { + PJ_LOG(3,(THIS_FILE, + "...error: pj_ioqueue_poll() returned %d " + "(only expecting %d)", + status, pending_op)); + return -52; + } pending_op -= status; if (pending_op == 0) { @@ -478,6 +485,14 @@ static int compliance_test_1(void) } } + if (status > pending_op) { + PJ_LOG(3,(THIS_FILE, + "...error: pj_ioqueue_poll() returned %d " + "(only expecting %d)", + status, pending_op)); + return -552; + } + pending_op -= status; if (pending_op == 0) { status = 0; -- cgit v1.2.3