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: https://svn.pjsip.org/repos/pjproject/trunk@2778 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/src/pjlib-test/select.c b/pjlib/src/pjlib-test/select.c
index 7f31a3e..f9bd9f7 100644
--- a/pjlib/src/pjlib-test/select.c
+++ b/pjlib/src/pjlib-test/select.c
@@ -142,6 +142,9 @@
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);