diff options
| author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-20 14:22:51 +0300 |
|---|---|---|
| committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-20 15:06:27 +0300 |
| commit | da6b1a8e4774234c2dbdd9f2875de21b41086d00 (patch) | |
| tree | 66b63cf24dcdc24cfd1b1b562f788e935184ca2d /tests/test-runner.h | |
| parent | tests: plug fd leaks in free_source_with_data (diff) | |
| download | wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar.gz wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar.bz2 wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar.lz wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar.xz wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.tar.zst wayland-da6b1a8e4774234c2dbdd9f2875de21b41086d00.zip | |
tests: support testing fd inheritance over exec
Add facility for testing how (many) file descriptors survive an exec.
This allows implementing O_CLOEXEC tests.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'tests/test-runner.h')
| -rw-r--r-- | tests/test-runner.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-runner.h b/tests/test-runner.h index edcf592..707504c 100644 --- a/tests/test-runner.h +++ b/tests/test-runner.h @@ -34,4 +34,7 @@ struct test { int count_open_fds(void); +void +exec_fd_leak_check(int nr_expected_fds); /* never returns */ + #endif |
