Skip to content

Commit cac10e6

Browse files
author
MarcoFalke
committed
Merge #21264: fuzz: Two scripted diff renames
fae216a scripted-diff: Rename MakeFuzzingContext to MakeNoLogFileContext (MarcoFalke) fa4fbec scripted-diff: Rename PROVIDE_MAIN_FUNCTION -> PROVIDE_FUZZ_MAIN_FUNCTION (MarcoFalke) Pull request description: Split out two renames from #21003: * `PROVIDE_FUZZ_MAIN_FUNCTION`. *Reason*: This in only used by fuzzing, so the name should indicate that. * `MakeNoLogFileContext`. *Reason*: Better reflects what the helper does. Also, prepares it to be used in non-fuzz tests in the future. ACKs for top commit: practicalswift: cr ACK fae216a: scripted-diff looks correct Tree-SHA512: e5d347746f5da72b0c86fd4f07ac2e4b3016e88e8c97a830c73bd79d0af6d0245fe7712487fc20344d6cc25958941716c1678124a123930407e3a437265b71df
2 parents 1b1d8bd + fae216a commit cac10e6

36 files changed

+51
-51
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ if test "x$enable_fuzz" = "xyes"; then
12691269
[[-fsanitize=$use_sanitizers]],
12701270
[AC_MSG_RESULT([no])],
12711271
[AC_MSG_RESULT([yes])
1272-
CPPFLAGS="$CPPFLAGS -DPROVIDE_MAIN_FUNCTION"],
1272+
CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"],
12731273
[],
12741274
[AC_LANG_PROGRAM([[
12751275
#include <cstdint>
@@ -1293,7 +1293,7 @@ else
12931293
QT_TEST_INCLUDES=SUPPRESS_WARNINGS($QT_TEST_INCLUDES)
12941294
fi
12951295

1296-
CPPFLAGS="$CPPFLAGS -DPROVIDE_MAIN_FUNCTION"
1296+
CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"
12971297
fi
12981298

12991299
if test x$enable_wallet != xno; then

src/test/fuzz/addrman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

src/test/fuzz/autofile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

src/test/fuzz/banman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -26,7 +26,7 @@ int64_t ConsumeBanTimeOffset(FuzzedDataProvider& fuzzed_data_provider) noexcept
2626

2727
void initialize_banman()
2828
{
29-
static const auto testing_setup = MakeFuzzingContext<>();
29+
static const auto testing_setup = MakeNoLogFileContext<>();
3030
}
3131

3232
FUZZ_TARGET_INIT(banman, initialize_banman)

src/test/fuzz/bloom_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

src/test/fuzz/buffered_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

src/test/fuzz/coins_view.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -36,7 +36,7 @@ bool operator==(const Coin& a, const Coin& b)
3636

3737
void initialize_coins_view()
3838
{
39-
static const auto testing_setup = MakeFuzzingContext<const TestingSetup>();
39+
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
4040
}
4141

4242
FUZZ_TARGET_INIT(coins_view, initialize_coins_view)

src/test/fuzz/connman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -17,7 +17,7 @@
1717

1818
void initialize_connman()
1919
{
20-
static const auto testing_setup = MakeFuzzingContext<>();
20+
static const auto testing_setup = MakeNoLogFileContext<>();
2121
}
2222

2323
FUZZ_TARGET_INIT(connman, initialize_connman)

src/test/fuzz/crypto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

src/test/fuzz/crypto_chacha20.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020 The Bitcoin Core developers
1+
// Copyright (c) 2020-2021 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

0 commit comments

Comments
 (0)