swift-nio/IntegrationTests/tests_04_performance
Cory Benfield fd35cd9e52
Extend the integration test harness to track FDs (#2411)
* Extend the integration test harness to track FDs

Motivation

This patch extends the NIO integration test harness to track
file descriptors, in particular to search for leaks. This
change has been validated on Linux and Darwin, and in both cases
correctly diagnoses FD leaks.

The goal is to enable us to regression test for things like

Modifications

- Add support for hooking socket and close calls.
- Wire up this support into the test harness.
- Extend the test harness to handle the logging.
- Add new regression test for #2047.

Results

We can write regression tests for FD leaks.

* Disable FD checking in most builds.

I'm doing this for speed reasons

* Always print the leaked fds number
2023-04-26 08:38:18 -07:00
..
test_01_resources Extend the integration test harness to track FDs (#2411) 2023-04-26 08:38:18 -07:00
defines.sh add an allocation counting integration test (#252) 2018-03-29 18:31:08 +01:00
test_01_allocation_counts.sh Extend the integration test harness to track FDs (#2411) 2023-04-26 08:38:18 -07:00