tests: detect fd leaks

Detect file descriptor leaks in tests.

Add a sanity test to verify that we catch the leaks.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-04-19 16:52:32 +03:00
parent 2896b6a220
commit e0561ac68d
5 changed files with 68 additions and 1 deletions

View file

@ -10,7 +10,7 @@ check_PROGRAMS = \
event-loop-test \
client-test
test_runner_src = test-runner.c test-runner.h
test_runner_src = test-runner.c test-runner.h test-helpers.c
sanity_test_SOURCES = sanity-test.c $(test_runner_src)
map_test_SOURCES = map-test.c $(test_runner_src)