]> granicus.if.org Git - libevent/commit
Add a new test: test-fdleak which tests for fd leaks by creating many sockets.
authorRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 23 Feb 2012 19:40:02 +0000 (21:40 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 23 Feb 2012 19:44:30 +0000 (21:44 +0200)
commit2ef92786e3f1a645937e00ac2d01a3389454fea9
tree76bdd6af9cd1c990da148631e083fc8aa8f2ed40
parent74d32dd493a9eba7ff8c28bc1cdf1d3c672edf5c
Add a new test: test-fdleak which tests for fd leaks by creating many sockets.

This test opens a server socket, and forks a child which connects to that
server socket many times. It sets a low number for the max open file limit
to catch any file descriptor leaks.
It would not work on Windows since it uses fork() to be able to create both the
server and the clients.
.gitignore
test/Makefile.am
test/test-fdleak.c [new file with mode: 0644]
test/test.sh