Running with the libev backend on Ubuntu 12.04 or 14.04 (in VirtualBox) leads to the test suite hanging on this test.
Switching the libev back to use select makes the test work ie
LIBEV_FLAGS=1 ./_build/test/unix/main.native
So it seems to be something to do with whatever default backend is chosen on Linux. Neither LIBEV_FLAGS=2 (poll) of LIBEV_FLAGS=4 (epoll; default?) work.
I added some printfs to trace the tests. It should look like
Running with the libev backend on Ubuntu 12.04 or 14.04 (in VirtualBox) leads to the test suite hanging on this test.
Switching the libev back to use select makes the test work ie
So it seems to be something to do with whatever default backend is chosen on Linux. Neither LIBEV_FLAGS=2 (poll) of LIBEV_FLAGS=4 (epoll; default?) work.
I added some printfs to trace the tests. It should look like
When it hangs we get
It seems the server is shutdown before the handler is even woken up. Sleeping just before the server shutdown lets the test work.