diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-06-19 09:38:40 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-06-19 09:38:40 +0000 |
commit | 5d04403caccc1ee6d30c78b6b6564d1cec47339f (patch) | |
tree | 22501799c3c57fe27b85bf8ae27a060feea88722 | |
parent | 813bf0f5051527b59723c682f8f5cc8f7c2e8d6c (diff) |
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
-rw-r--r-- | pjlib/src/pjlib-test/select.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |