tests/fuzz: fix include order.

Nobody ever runs `make check-includes` with fuzzing enabled.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-10-22 19:44:29 +10:30
parent c821e41085
commit d8ee3a5eb9
7 changed files with 12 additions and 12 deletions

View File

@@ -1,9 +1,9 @@
#include "config.h"
#include <assert.h>
#include <common/addr.h>
#include <common/setup.h>
#include <common/utils.h>
#include <assert.h>
#include <tests/fuzz/libfuzz.h>
void init(int *argc, char ***argv)

View File

@@ -1,7 +1,7 @@
#include "config.h"
#include <assert.h>
#include <common/utils.h>
#include <common/bech32.h>
#include <common/utils.h>
#include <stdint.h>
#include <string.h>
#include <tests/fuzz/libfuzz.h>

View File

@@ -6,7 +6,7 @@
#include <tests/fuzz/libfuzz.h>
/* Include bolt12.c directly, to gain access to string_to_data(). */
#include "../../common/bolt12.c"
#include "../../common/bolt12.c"
void init(int *argc, char ***argv) { common_setup("fuzzer"); }

View File

@@ -2,10 +2,10 @@
#include <assert.h>
#include <ccan/ccan/array_size/array_size.h>
#include <ccan/ccan/tal/str/str.h>
#include <common/setup.h>
#include <common/bech32.h>
#include <common/utils.h>
#include <common/codex32.h>
#include <common/setup.h>
#include <common/utils.h>
#include <tests/fuzz/libfuzz.h>
/* Default mutator defined by libFuzzer */

View File

@@ -1,12 +1,12 @@
#include "config.h"
#include <stdio.h>
#include <fcntl.h>
#include <setjmp.h>
#include <common/per_peer_state.h>
#include <common/peer_failed.h>
#include <common/per_peer_state.h>
#include <common/read_peer_msg.h>
#include <common/status.h>
#include <common/utils.h>
#include <fcntl.h>
#include <setjmp.h>
#include <stdio.h>
#include <tests/fuzz/libfuzz.h>
static jmp_buf exit_jmp;

View File

@@ -1,11 +1,11 @@
#include "config.h"
#include <ccan/array_size/array_size.h>
#include <common/setup.h>
#include <wire/wire.h>
#include <stdio.h>
#include <tests/fuzz/libfuzz.h>
#include <wire/wire.h>
#include "../../plugins/funder_policy.c"
#include "../../plugins/funder_policy.c"
/* AUTOGENERATED MOCKS START */
/* Generated stub for json_add_string */

View File

@@ -5,8 +5,8 @@
#include <assert.h>
#include <ccan/crypto/hmac_sha256/hmac_sha256.h>
#include <ccan/mem/mem.h>
#include <openssl/hmac.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/sha.h>
#include <tests/fuzz/libfuzz.h>