From 476567430be6962625bf399192e20938985232c7 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Aug 2011 15:08:16 +0930 Subject: [PATCH] tdb2: make tests include a single mega-header to simplify future patches This lets us add the new files to a single place. --- ccan/tdb2/test/run-001-encode.c | 9 +-------- ccan/tdb2/test/run-001-fls.c | 9 +-------- ccan/tdb2/test/run-01-new_database.c | 9 +-------- ccan/tdb2/test/run-02-expand.c | 9 +-------- ccan/tdb2/test/run-03-coalesce.c | 9 +-------- ccan/tdb2/test/run-04-basichash.c | 9 +-------- ccan/tdb2/test/run-05-readonly-open.c | 9 +-------- ccan/tdb2/test/run-10-simple-store.c | 9 +-------- ccan/tdb2/test/run-11-simple-fetch.c | 9 +-------- ccan/tdb2/test/run-12-store.c | 9 +-------- ccan/tdb2/test/run-13-delete.c | 9 +-------- ccan/tdb2/test/run-14-exists.c | 9 +-------- ccan/tdb2/test/run-15-append.c | 9 +-------- ccan/tdb2/test/run-16-wipe_all.c | 10 +--------- ccan/tdb2/test/run-20-growhash.c | 9 +-------- ccan/tdb2/test/run-21-parse_record.c | 9 +-------- ccan/tdb2/test/run-25-hashoverload.c | 10 +--------- ccan/tdb2/test/run-30-exhaust-before-expand.c | 9 +-------- ccan/tdb2/test/run-35-convert.c | 9 +-------- ccan/tdb2/test/run-50-multiple-freelists.c | 9 +-------- ccan/tdb2/test/run-55-transaction.c | 9 +-------- ccan/tdb2/test/run-56-open-during-transaction.c | 9 +-------- ccan/tdb2/test/run-57-die-during-transaction.c | 10 ++-------- ccan/tdb2/test/run-64-bit-tdb.c | 10 +--------- ccan/tdb2/test/run-80-tdb_fd.c | 9 +-------- ccan/tdb2/test/run-81-seqnum.c | 10 +--------- ccan/tdb2/test/run-82-lockattr.c | 10 +--------- ccan/tdb2/test/run-83-openhook.c | 9 +-------- ccan/tdb2/test/run-90-get-set-attributes.c | 10 +--------- ccan/tdb2/test/run-91-get-stats.c | 10 +--------- ccan/tdb2/test/run-92-get-set-readonly.c | 10 +--------- ccan/tdb2/test/run-add-remove-flags.c | 10 +--------- ccan/tdb2/test/run-check-callback.c | 10 +--------- ccan/tdb2/test/run-expand-in-transaction.c | 9 +-------- ccan/tdb2/test/run-features.c | 10 +--------- ccan/tdb2/test/run-firstkey-nextkey.c | 10 +--------- ccan/tdb2/test/run-fork-test.c | 9 +-------- ccan/tdb2/test/run-lockall.c | 9 +-------- ccan/tdb2/test/run-locktimeout.c | 9 +-------- ccan/tdb2/test/run-missing-entries.c | 10 +--------- ccan/tdb2/test/run-open-multiple-times.c | 9 +-------- ccan/tdb2/test/run-record-expand.c | 9 +-------- ccan/tdb2/test/run-remap-in-read_traverse.c | 10 +--------- ccan/tdb2/test/run-seed.c | 9 +-------- ccan/tdb2/test/run-simple-delete.c | 9 +-------- ccan/tdb2/test/run-summary.c | 10 +--------- ccan/tdb2/test/run-tdb_errorstr.c | 9 +-------- ccan/tdb2/test/run-tdb_foreach.c | 9 +-------- ccan/tdb2/test/run-traverse.c | 10 +--------- ccan/tdb2/test/tdb2-source.h | 10 ++++++++++ 50 files changed, 60 insertions(+), 408 deletions(-) create mode 100644 ccan/tdb2/test/tdb2-source.h diff --git a/ccan/tdb2/test/run-001-encode.c b/ccan/tdb2/test/run-001-encode.c index ffa4b93c..67616fcd 100644 --- a/ccan/tdb2/test/run-001-encode.c +++ b/ccan/tdb2/test/run-001-encode.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-001-fls.c b/ccan/tdb2/test/run-001-fls.c index d54cad1d..4449f69d 100644 --- a/ccan/tdb2/test/run-001-fls.c +++ b/ccan/tdb2/test/run-001-fls.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include static unsigned int dumb_fls(uint64_t num) diff --git a/ccan/tdb2/test/run-01-new_database.c b/ccan/tdb2/test/run-01-new_database.c index 4cfd04d9..93b20401 100644 --- a/ccan/tdb2/test/run-01-new_database.c +++ b/ccan/tdb2/test/run-01-new_database.c @@ -1,12 +1,5 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-02-expand.c b/ccan/tdb2/test/run-02-expand.c index ffd02e16..f3c3d4d4 100644 --- a/ccan/tdb2/test/run-02-expand.c +++ b/ccan/tdb2/test/run-02-expand.c @@ -1,12 +1,5 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-03-coalesce.c b/ccan/tdb2/test/run-03-coalesce.c index 8222f06b..eaaabf7a 100644 --- a/ccan/tdb2/test/run-03-coalesce.c +++ b/ccan/tdb2/test/run-03-coalesce.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" #include "layout.h" diff --git a/ccan/tdb2/test/run-04-basichash.c b/ccan/tdb2/test/run-04-basichash.c index 815011fa..65d15282 100644 --- a/ccan/tdb2/test/run-04-basichash.c +++ b/ccan/tdb2/test/run-04-basichash.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-05-readonly-open.c b/ccan/tdb2/test/run-05-readonly-open.c index 0f1a4343..1062f1c4 100644 --- a/ccan/tdb2/test/run-05-readonly-open.c +++ b/ccan/tdb2/test/run-05-readonly-open.c @@ -1,12 +1,5 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-10-simple-store.c b/ccan/tdb2/test/run-10-simple-store.c index 3aeb3816..71570a24 100644 --- a/ccan/tdb2/test/run-10-simple-store.c +++ b/ccan/tdb2/test/run-10-simple-store.c @@ -1,12 +1,5 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-11-simple-fetch.c b/ccan/tdb2/test/run-11-simple-fetch.c index 278d726a..ed3dcad6 100644 --- a/ccan/tdb2/test/run-11-simple-fetch.c +++ b/ccan/tdb2/test/run-11-simple-fetch.c @@ -1,12 +1,5 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-12-store.c b/ccan/tdb2/test/run-12-store.c index 97166553..73ffd554 100644 --- a/ccan/tdb2/test/run-12-store.c +++ b/ccan/tdb2/test/run-12-store.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-13-delete.c b/ccan/tdb2/test/run-13-delete.c index 3b464d92..b5586dc2 100644 --- a/ccan/tdb2/test/run-13-delete.c +++ b/ccan/tdb2/test/run-13-delete.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-14-exists.c b/ccan/tdb2/test/run-14-exists.c index f264a6f2..b27fc706 100644 --- a/ccan/tdb2/test/run-14-exists.c +++ b/ccan/tdb2/test/run-14-exists.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-15-append.c b/ccan/tdb2/test/run-15-append.c index 70c0d174..9e82a923 100644 --- a/ccan/tdb2/test/run-15-append.c +++ b/ccan/tdb2/test/run-15-append.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-16-wipe_all.c b/ccan/tdb2/test/run-16-wipe_all.c index d9c5128e..1ca23c33 100644 --- a/ccan/tdb2/test/run-16-wipe_all.c +++ b/ccan/tdb2/test/run-16-wipe_all.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-20-growhash.c b/ccan/tdb2/test/run-20-growhash.c index 22a88c45..890bcd27 100644 --- a/ccan/tdb2/test/run-20-growhash.c +++ b/ccan/tdb2/test/run-20-growhash.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-21-parse_record.c b/ccan/tdb2/test/run-21-parse_record.c index 773cdff4..6f95ff70 100644 --- a/ccan/tdb2/test/run-21-parse_record.c +++ b/ccan/tdb2/test/run-21-parse_record.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-25-hashoverload.c b/ccan/tdb2/test/run-25-hashoverload.c index 83f549d6..0e143026 100644 --- a/ccan/tdb2/test/run-25-hashoverload.c +++ b/ccan/tdb2/test/run-25-hashoverload.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-30-exhaust-before-expand.c b/ccan/tdb2/test/run-30-exhaust-before-expand.c index 2386f85f..2279a802 100644 --- a/ccan/tdb2/test/run-30-exhaust-before-expand.c +++ b/ccan/tdb2/test/run-30-exhaust-before-expand.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-35-convert.c b/ccan/tdb2/test/run-35-convert.c index 03003691..faadfb76 100644 --- a/ccan/tdb2/test/run-35-convert.c +++ b/ccan/tdb2/test/run-35-convert.c @@ -1,13 +1,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-50-multiple-freelists.c b/ccan/tdb2/test/run-50-multiple-freelists.c index 719701b1..0618a88d 100644 --- a/ccan/tdb2/test/run-50-multiple-freelists.c +++ b/ccan/tdb2/test/run-50-multiple-freelists.c @@ -1,12 +1,5 @@ -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include -#include #include "logging.h" #include "layout.h" diff --git a/ccan/tdb2/test/run-55-transaction.c b/ccan/tdb2/test/run-55-transaction.c index 1650e40e..a6607d11 100644 --- a/ccan/tdb2/test/run-55-transaction.c +++ b/ccan/tdb2/test/run-55-transaction.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-56-open-during-transaction.c b/ccan/tdb2/test/run-56-open-during-transaction.c index 88933e02..1c714dc8 100644 --- a/ccan/tdb2/test/run-56-open-during-transaction.c +++ b/ccan/tdb2/test/run-56-open-during-transaction.c @@ -11,14 +11,7 @@ static int ftruncate_check(int fd, off_t length); #define fcntl fcntl_with_lockcheck #define ftruncate ftruncate_check -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include diff --git a/ccan/tdb2/test/run-57-die-during-transaction.c b/ccan/tdb2/test/run-57-die-during-transaction.c index 1b028023..e6223955 100644 --- a/ccan/tdb2/test/run-57-die-during-transaction.c +++ b/ccan/tdb2/test/run-57-die-during-transaction.c @@ -58,14 +58,8 @@ static void free_all(void) #define malloc malloc_noleak #define free free_noleak -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" + #undef malloc #undef free #undef write diff --git a/ccan/tdb2/test/run-64-bit-tdb.c b/ccan/tdb2/test/run-64-bit-tdb.c index 20c85efa..566f5465 100644 --- a/ccan/tdb2/test/run-64-bit-tdb.c +++ b/ccan/tdb2/test/run-64-bit-tdb.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-80-tdb_fd.c b/ccan/tdb2/test/run-80-tdb_fd.c index ddfcb3e5..fe7a9ef9 100644 --- a/ccan/tdb2/test/run-80-tdb_fd.c +++ b/ccan/tdb2/test/run-80-tdb_fd.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-81-seqnum.c b/ccan/tdb2/test/run-81-seqnum.c index f7308e2d..6b95f19c 100644 --- a/ccan/tdb2/test/run-81-seqnum.c +++ b/ccan/tdb2/test/run-81-seqnum.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-82-lockattr.c b/ccan/tdb2/test/run-82-lockattr.c index bfc26532..20d0aaaf 100644 --- a/ccan/tdb2/test/run-82-lockattr.c +++ b/ccan/tdb2/test/run-82-lockattr.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-83-openhook.c b/ccan/tdb2/test/run-83-openhook.c index c8527935..0bf8194e 100644 --- a/ccan/tdb2/test/run-83-openhook.c +++ b/ccan/tdb2/test/run-83-openhook.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include diff --git a/ccan/tdb2/test/run-90-get-set-attributes.c b/ccan/tdb2/test/run-90-get-set-attributes.c index 159d8a01..6cb889f4 100644 --- a/ccan/tdb2/test/run-90-get-set-attributes.c +++ b/ccan/tdb2/test/run-90-get-set-attributes.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-91-get-stats.c b/ccan/tdb2/test/run-91-get-stats.c index 795dfd66..53a0ff59 100644 --- a/ccan/tdb2/test/run-91-get-stats.c +++ b/ccan/tdb2/test/run-91-get-stats.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-92-get-set-readonly.c b/ccan/tdb2/test/run-92-get-set-readonly.c index 09a6010c..31404be2 100644 --- a/ccan/tdb2/test/run-92-get-set-readonly.c +++ b/ccan/tdb2/test/run-92-get-set-readonly.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-add-remove-flags.c b/ccan/tdb2/test/run-add-remove-flags.c index 35a312b4..bc778499 100644 --- a/ccan/tdb2/test/run-add-remove-flags.c +++ b/ccan/tdb2/test/run-add-remove-flags.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-check-callback.c b/ccan/tdb2/test/run-check-callback.c index c3106b51..290f3260 100644 --- a/ccan/tdb2/test/run-check-callback.c +++ b/ccan/tdb2/test/run-check-callback.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-expand-in-transaction.c b/ccan/tdb2/test/run-expand-in-transaction.c index 49ba03c9..26b7c457 100644 --- a/ccan/tdb2/test/run-expand-in-transaction.c +++ b/ccan/tdb2/test/run-expand-in-transaction.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-features.c b/ccan/tdb2/test/run-features.c index f00c74bc..b086869d 100644 --- a/ccan/tdb2/test/run-features.c +++ b/ccan/tdb2/test/run-features.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-firstkey-nextkey.c b/ccan/tdb2/test/run-firstkey-nextkey.c index 895734a7..3e8f4d55 100644 --- a/ccan/tdb2/test/run-firstkey-nextkey.c +++ b/ccan/tdb2/test/run-firstkey-nextkey.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-fork-test.c b/ccan/tdb2/test/run-fork-test.c index e9813e0a..27347425 100644 --- a/ccan/tdb2/test/run-fork-test.c +++ b/ccan/tdb2/test/run-fork-test.c @@ -10,14 +10,7 @@ * Note that we don't hold a lock across tdb_traverse callbacks, so * that doesn't matter. */ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include #include diff --git a/ccan/tdb2/test/run-lockall.c b/ccan/tdb2/test/run-lockall.c index 7f75159c..201757fe 100644 --- a/ccan/tdb2/test/run-lockall.c +++ b/ccan/tdb2/test/run-lockall.c @@ -3,15 +3,8 @@ #include "lock-tracking.h" #define fcntl fcntl_with_lockcheck +#include "tdb2-source.h" -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include diff --git a/ccan/tdb2/test/run-locktimeout.c b/ccan/tdb2/test/run-locktimeout.c index d44713fc..33b99652 100644 --- a/ccan/tdb2/test/run-locktimeout.c +++ b/ccan/tdb2/test/run-locktimeout.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" #include "external-agent.h" diff --git a/ccan/tdb2/test/run-missing-entries.c b/ccan/tdb2/test/run-missing-entries.c index e99572f6..22d6ba42 100644 --- a/ccan/tdb2/test/run-missing-entries.c +++ b/ccan/tdb2/test/run-missing-entries.c @@ -1,13 +1,5 @@ +#include "tdb2-source.h" /* Another test revealed that we lost an entry. This reproduces it. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include "logging.h" diff --git a/ccan/tdb2/test/run-open-multiple-times.c b/ccan/tdb2/test/run-open-multiple-times.c index 240828df..f49e65d8 100644 --- a/ccan/tdb2/test/run-open-multiple-times.c +++ b/ccan/tdb2/test/run-open-multiple-times.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-record-expand.c b/ccan/tdb2/test/run-record-expand.c index 155484ce..25c1af3d 100644 --- a/ccan/tdb2/test/run-record-expand.c +++ b/ccan/tdb2/test/run-record-expand.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-remap-in-read_traverse.c b/ccan/tdb2/test/run-remap-in-read_traverse.c index d784ca34..b70a841a 100644 --- a/ccan/tdb2/test/run-remap-in-read_traverse.c +++ b/ccan/tdb2/test/run-remap-in-read_traverse.c @@ -1,14 +1,6 @@ +#include "tdb2-source.h" /* We had a bug where we marked the tdb read-only for a tdb_traverse_read. * If we then expanded the tdb, we would remap read-only, and later SEGV. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include "external-agent.h" #include "logging.h" diff --git a/ccan/tdb2/test/run-seed.c b/ccan/tdb2/test/run-seed.c index 94a13941..09193964 100644 --- a/ccan/tdb2/test/run-seed.c +++ b/ccan/tdb2/test/run-seed.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-simple-delete.c b/ccan/tdb2/test/run-simple-delete.c index 3d6a6f2a..a3c22576 100644 --- a/ccan/tdb2/test/run-simple-delete.c +++ b/ccan/tdb2/test/run-simple-delete.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-summary.c b/ccan/tdb2/test/run-summary.c index 6217021b..54fbfad4 100644 --- a/ccan/tdb2/test/run-summary.c +++ b/ccan/tdb2/test/run-summary.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-tdb_errorstr.c b/ccan/tdb2/test/run-tdb_errorstr.c index 27bdfcd6..742fb891 100644 --- a/ccan/tdb2/test/run-tdb_errorstr.c +++ b/ccan/tdb2/test/run-tdb_errorstr.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include int main(int argc, char *argv[]) diff --git a/ccan/tdb2/test/run-tdb_foreach.c b/ccan/tdb2/test/run-tdb_foreach.c index e34dfb86..b17f0780 100644 --- a/ccan/tdb2/test/run-tdb_foreach.c +++ b/ccan/tdb2/test/run-tdb_foreach.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/run-traverse.c b/ccan/tdb2/test/run-traverse.c index 583e649d..4de0ebde 100644 --- a/ccan/tdb2/test/run-traverse.c +++ b/ccan/tdb2/test/run-traverse.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" diff --git a/ccan/tdb2/test/tdb2-source.h b/ccan/tdb2/test/tdb2-source.h new file mode 100644 index 00000000..ade21354 --- /dev/null +++ b/ccan/tdb2/test/tdb2-source.h @@ -0,0 +1,10 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -- 2.39.2