core-lightning/wallet
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
..
test common/utils: introduce tmpdir_mkstemp; use it 2021-12-06 09:20:27 +10:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
db_common.h lightningd: shutdown plugins after subdaemons and assert no write access to db 2021-11-30 13:34:44 +10:30
db_postgres.c wallet: db column manipulation helpers. 2021-11-17 10:51:48 +10:30
db_sqlite3.c wallet: fix sqlite3 column renaming since db backup merge. 2021-11-18 12:53:17 +10:30
db.c wallet/db.c, wallet/wallet.c: Add a partial index to speed up startup. 2021-12-02 11:54:57 +01:00
db.h lightningd: shutdown plugins after subdaemons and assert no write access to db 2021-11-30 13:34:44 +10:30
invoices.c wallet: have db track what columns are accessed in DEVELOPER mode. 2021-11-17 10:51:48 +10:30
invoices.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
Makefile Makefile: remove NO_PYTHON flag in anticipation of making it compulsory. 2021-09-22 15:25:14 +02:00
reservation.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
txfilter.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
txfilter.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
wallet.c wallet/db.c, wallet/wallet.c: Add a partial index to speed up startup. 2021-12-02 11:54:57 +01:00
wallet.h lightningd: cleanup, freeing jsonrpc in shutdown cannot trigger db write's anymore 2021-11-30 13:34:44 +10:30
walletrpc.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
walletrpc.h common: pull up param_psbt 2020-10-20 12:50:31 +10:30