core-lightning/plugins/test
Matt Whitlock 1f79aad830 common/utils: introduce tmpdir_mkstemp; use it
Various unit tests were creating temporary files unconditionally in /tmp
and were not cleaning up after themselves. Introduce a new variant of
mkstemp(3p) that respects the TMPDIR environment variable, and use it in
the offending unit tests. This allows each test run to use a dedicated
TMPDIR that can be cleaned up after the run.

Changelog-None

Signed-off-by: Matt Whitlock <c-lightning@mattwhitlock.name>
2021-12-06 09:20:27 +10:30
..
Makefile common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
Makefile2 plugins/test/run-route-overlong: modern overlong routing test. 2021-05-22 17:53:04 +09:30
run-funder_policy.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
run-route-overlong.c common/utils: introduce tmpdir_mkstemp; use it 2021-12-06 09:20:27 +10:30