swift-nio/IntegrationTests/allocation-counter-tests-fr...
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
..
template Extend the integration test harness to track FDs (#2411) 2023-04-26 08:38:18 -07:00
run-allocation-counter.sh Lift alloc counter Package.swift to 5.1 and add platforms (#2352) 2023-01-19 09:37:11 -08:00