From 1a29d788297ec44d3d7abb6eee7c9fb1d97747f8 Mon Sep 17 00:00:00 2001 From: Stefan <5tefan@users.noreply.github.com> Date: Wed, 28 Jul 2021 23:53:44 -0600 Subject: [PATCH] Merge bitcoin#14771: test: Add BOOST_REQUIRE to getters returning optional (#4297) * Merge #14771: test: Add BOOST_REQUIRE to getters returning optional fa21ca09a8 test: Add BOOST_REQUIRE to getters returning optional (MarcoFalke) Pull request description: Usually the returned value is already checked for equality, but for sanity we might as well require that the getter successfully returned. * Ports [[nodiscard]] portion of bitcoin#14771 --- src/test/coins_tests.cpp | 9 +++++---- src/test/dbwrapper_tests.cpp | 8 ++++---- src/test/util_tests.cpp | 2 +- src/util/system.h | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 17cc5639fd..b53ddc7652 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -2,17 +2,18 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include #include +#include #include