brianp      2002/08/01 15:54:25

  Modified:    poll/unix poll.c
               test     testpoll.c
  Log:
  Added select-based pollset implementation for systems without poll

Brian requested the current status of the testpoll on Win32...

First the build results;

poll.c
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(196) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *'
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(202) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(205) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(209) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(244) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *'
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(334) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *'
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(337) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(340) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(344) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(387) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *'
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(404) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(405) : warning C4018: '==' : signed/unsigned mismatch
D:\clean\httpd-2.0\srclib\apr\poll\unix\poll.c(406) : warning C4018: '==' : signed/unsigned mismatch


and the test results;

APR Poll Test
*************

Initializing...................................OK
Creating context...............................OK
        Creating the sockets I'll use..........OK
        Setting up the poll array I'll use........OK
Starting Tests
        Socket 0        Socket 1        Socket 2
        No wait         No wait         No wait
        Sending message to socket 2............OK
        Socket 0        Socket 1        Socket 2
        No wait         No wait         POLLIN!
        Trying to get message from socket 2....OK
        Sending message to socket 1............OK
        Socket 0        Socket 1        Socket 2
        No wait         POLLIN!         No wait
        Sending message to socket 2............OK
        Socket 0        Socket 1        Socket 2
        No wait         POLLIN!         POLLIN!
        Trying to get message from socket 1....OK
        Sending message to socket 0............OK
        Socket 0        Socket 1        Socket 2
        POLLIN!         No wait         POLLIN!
        Trying to get message from socket 0....OK
        Trying to get message from socket 2....OK
Tests completed.

APR Pollset Test
****************

        Setting up pollset....................OK

Test 1: No descriptors signalled.......OK

Test 2: First descriptor signalled.....
        Sending message to socket 0............OK
        Trying to get message from socket 0....OK
Test 2: OK

Test 3: Last descriptor signalled......
        Sending message to socket 99............OK
Test 3: FAILED





Reply via email to