From 5d04403caccc1ee6d30c78b6b6564d1cec47339f Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 19 Jun 2009 09:38:40 +0000 Subject: Ticket #890: pjlib-test failed on select() test Windows Vista multi-core - Added pj_thread_sleep(10) before calling sleep(). Tried with other ways too but this seems to be appropriate, as in the real application this shouldn't matter git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2778 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/select.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pjlib') diff --git a/pjlib/src/pjlib-test/select.c b/pjlib/src/pjlib-test/select.c index 7f31a3e1..f9bd9f79 100644 --- a/pjlib/src/pjlib-test/select.c +++ b/pjlib/src/pjlib-test/select.c @@ -142,6 +142,9 @@ int select_test() status=-40; goto on_return; } + // Sleep a bit. See http://trac.pjsip.org/repos/ticket/890 + pj_thread_sleep(10); + // Check that socket is marked as reable. // Note that select() may also report that sockets are writable. status = do_select(udp1, udp2, setcount); -- cgit v1.2.3