core-lightning/wallet/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
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
run-db.c common/utils: introduce tmpdir_mkstemp; use it 2021-12-06 09:20:27 +10:30
run-wallet.c common/utils: introduce tmpdir_mkstemp; use it 2021-12-06 09:20:27 +10:30
test_utils.c config: don't ignore the --commit-fee option. 2020-05-20 06:09:24 +09:30
test_utils.h fix: a pr2444 introduced valgrind complaint 2019-03-14 16:51:18 +01:00