diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-01-13 13:09:45 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-01-13 13:09:45 +0000 |
commit | 8cc7aef25ecc698b6fdfa620877f72e6b8dd536f (patch) | |
tree | 40e3c7c8df20a5b26d95543285145348a18009db /pjlib-util | |
parent | d4663d0cbfd495529f7ce486d9f9d36f7969bc50 (diff) |
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
Diffstat (limited to 'pjlib-util')
-rw-r--r-- | pjlib-util/src/pjlib-util-test/resolver_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)", |