From 8cc7aef25ecc698b6fdfa620877f72e6b8dd536f Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 13 Jan 2010 13:09:45 +0000 Subject: Initial OpenBSD fixes (#994): pjlib: - Autoconf fixes in detecting header availability - Undefined sched_get_priority_max() and sched_get_priority_min() - protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and - return hardcoded (0, 31) if __OpenBSD__ macro is declared - Better GUID generation pjlib-test: - Reduce the loop in PJILB activesock test - Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex pjlib-util-test: - Fixed bug in pjlib-util resolver test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3057 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib-util/src/pjlib-util-test/resolver_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pjlib-util') diff --git a/pjlib-util/src/pjlib-util-test/resolver_test.c b/pjlib-util/src/pjlib-util-test/resolver_test.c index d6be1411..678c990a 100644 --- a/pjlib-util/src/pjlib-util-test/resolver_test.c +++ b/pjlib-util/src/pjlib-util-test/resolver_test.c @@ -813,8 +813,8 @@ static int dns_test(void) /* Now only server 0 should get packet, since both servers are * in STATE_ACTIVE state */ - pj_assert(g_server[0].pkt_count == 1); - pj_assert(g_server[1].pkt_count == 0); + pj_assert((g_server[0].pkt_count == 1 && g_server[1].pkt_count == 0) || + (g_server[1].pkt_count == 1 && g_server[0].pkt_count == 0)); /* Wait to allow probing period to complete */ PJ_LOG(3,(THIS_FILE, " waiting for active NS to expire (%d sec)", -- cgit v1.2.3