diff --git a/Makefile.am b/Makefile.am index 5dae2650c..d2d9e102a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -131,14 +131,15 @@ test_libbitcoin_network_test_SOURCES = \ test/test.hpp \ test/async/desubscriber.cpp \ test/async/enable_shared_from_base.cpp \ - test/async/race_quality.cpp \ - test/async/race_speed.cpp \ - test/async/race_unity.cpp \ - test/async/race_volume.cpp \ test/async/subscriber.cpp \ test/async/thread.cpp \ test/async/threadpool.cpp \ test/async/unsubscriber.cpp \ + test/async/races/race_all.cpp \ + test/async/races/race_quality.cpp \ + test/async/races/race_speed.cpp \ + test/async/races/race_unity.cpp \ + test/async/races/race_volume.cpp \ test/config/address.cpp \ test/config/authority.cpp \ test/config/endpoint.cpp \ @@ -234,16 +235,21 @@ include_bitcoin_network_async_HEADERS = \ include/bitcoin/network/async/desubscriber.hpp \ include/bitcoin/network/async/enable_shared_from_base.hpp \ include/bitcoin/network/async/handlers.hpp \ - include/bitcoin/network/async/race_quality.hpp \ - include/bitcoin/network/async/race_speed.hpp \ - include/bitcoin/network/async/race_unity.hpp \ - include/bitcoin/network/async/race_volume.hpp \ include/bitcoin/network/async/subscriber.hpp \ include/bitcoin/network/async/thread.hpp \ include/bitcoin/network/async/threadpool.hpp \ include/bitcoin/network/async/time.hpp \ include/bitcoin/network/async/unsubscriber.hpp +include_bitcoin_network_async_racesdir = ${includedir}/bitcoin/network/async/races +include_bitcoin_network_async_races_HEADERS = \ + include/bitcoin/network/async/races/race_all.hpp \ + include/bitcoin/network/async/races/race_quality.hpp \ + include/bitcoin/network/async/races/race_speed.hpp \ + include/bitcoin/network/async/races/race_unity.hpp \ + include/bitcoin/network/async/races/race_volume.hpp \ + include/bitcoin/network/async/races/races.hpp + include_bitcoin_network_configdir = ${includedir}/bitcoin/network/config include_bitcoin_network_config_HEADERS = \ include/bitcoin/network/config/address.hpp \ @@ -256,13 +262,17 @@ include_bitcoin_network_impl_asyncdir = ${includedir}/bitcoin/network/impl/async include_bitcoin_network_impl_async_HEADERS = \ include/bitcoin/network/impl/async/desubscriber.ipp \ include/bitcoin/network/impl/async/enable_shared_from_base.ipp \ - include/bitcoin/network/impl/async/race_quality.ipp \ - include/bitcoin/network/impl/async/race_speed.ipp \ - include/bitcoin/network/impl/async/race_unity.ipp \ - include/bitcoin/network/impl/async/race_volume.ipp \ include/bitcoin/network/impl/async/subscriber.ipp \ include/bitcoin/network/impl/async/unsubscriber.ipp +include_bitcoin_network_impl_async_racesdir = ${includedir}/bitcoin/network/impl/async/races +include_bitcoin_network_impl_async_races_HEADERS = \ + include/bitcoin/network/impl/async/races/race_all.ipp \ + include/bitcoin/network/impl/async/races/race_quality.ipp \ + include/bitcoin/network/impl/async/races/race_speed.ipp \ + include/bitcoin/network/impl/async/races/race_unity.ipp \ + include/bitcoin/network/impl/async/races/race_volume.ipp + include_bitcoin_network_logdir = ${includedir}/bitcoin/network/log include_bitcoin_network_log_HEADERS = \ include/bitcoin/network/log/capture.hpp \ diff --git a/builds/cmake/CMakeLists.txt b/builds/cmake/CMakeLists.txt index 66650ad03..feb9afdfd 100644 --- a/builds/cmake/CMakeLists.txt +++ b/builds/cmake/CMakeLists.txt @@ -339,14 +339,15 @@ if (with-tests) "../../test/test.hpp" "../../test/async/desubscriber.cpp" "../../test/async/enable_shared_from_base.cpp" - "../../test/async/race_quality.cpp" - "../../test/async/race_speed.cpp" - "../../test/async/race_unity.cpp" - "../../test/async/race_volume.cpp" "../../test/async/subscriber.cpp" "../../test/async/thread.cpp" "../../test/async/threadpool.cpp" "../../test/async/unsubscriber.cpp" + "../../test/async/races/race_all.cpp" + "../../test/async/races/race_quality.cpp" + "../../test/async/races/race_speed.cpp" + "../../test/async/races/race_unity.cpp" + "../../test/async/races/race_volume.cpp" "../../test/config/address.cpp" "../../test/config/authority.cpp" "../../test/config/endpoint.cpp" diff --git a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj index 0d642c66f..51fef795a 100644 --- a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj +++ b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj @@ -72,10 +72,11 @@ - - - - + + + + + diff --git a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters index d63a1a3a4..d74dc5c0b 100644 --- a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters +++ b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters @@ -13,6 +13,9 @@ {D28FC18A-8B81-4247-0000-000000000001} + + {D28FC18A-8B81-4247-0000-000000000008} + {D28FC18A-8B81-4247-0000-000000000002} @@ -39,17 +42,20 @@ src\async - - src\async + + src\async\races - - src\async + + src\async\races - - src\async + + src\async\races - - src\async + + src\async\races + + + src\async\races src\async diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj index 1a6f0dfeb..50c2a37dc 100644 --- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj +++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj @@ -162,10 +162,12 @@ - - - - + + + + + + @@ -265,10 +267,11 @@ - - - - + + + + + diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters index e38244976..817aaaa70 100644 --- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters +++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters @@ -19,6 +19,9 @@ {564EB540-D6B6-425C-0000-00000000000B} + + {564EB540-D6B6-425C-0000-000000000004} + {564EB540-D6B6-425C-0000-00000000000C} @@ -26,7 +29,10 @@ {564EB540-D6B6-425C-0000-00000000000D} - {564EB540-D6B6-425C-0000-000000000004} + {564EB540-D6B6-425C-0000-000000000005} + + + {564EB540-D6B6-425C-0000-000000000006} {564EB540-D6B6-425C-0000-00000000000E} @@ -35,7 +41,7 @@ {564EB540-D6B6-425C-0000-00000000000F} - {564EB540-D6B6-425C-0000-000000000005} + {564EB540-D6B6-425C-0000-000000000007} {564EB540-D6B6-425C-0000-000000000001} @@ -47,7 +53,7 @@ {564EB540-D6B6-425C-0000-000000000003} - {564EB540-D6B6-425C-0000-000000000006} + {564EB540-D6B6-425C-0000-000000000008} {564EB540-D6B6-425C-0000-000000000000} @@ -326,17 +332,23 @@ include\bitcoin\network\async - - include\bitcoin\network\async + + include\bitcoin\network\async\races - - include\bitcoin\network\async + + include\bitcoin\network\async\races - - include\bitcoin\network\async + + include\bitcoin\network\async\races - - include\bitcoin\network\async + + include\bitcoin\network\async\races + + + include\bitcoin\network\async\races + + + include\bitcoin\network\async\races include\bitcoin\network\async @@ -631,17 +643,20 @@ include\bitcoin\network\impl\async - - include\bitcoin\network\impl\async + + include\bitcoin\network\impl\async\races - - include\bitcoin\network\impl\async + + include\bitcoin\network\impl\async\races - - include\bitcoin\network\impl\async + + include\bitcoin\network\impl\async\races - - include\bitcoin\network\impl\async + + include\bitcoin\network\impl\async\races + + + include\bitcoin\network\impl\async\races include\bitcoin\network\impl\async diff --git a/include/bitcoin/network.hpp b/include/bitcoin/network.hpp index e9e3d2e77..81fcbe363 100644 --- a/include/bitcoin/network.hpp +++ b/include/bitcoin/network.hpp @@ -26,15 +26,17 @@ #include #include #include -#include -#include -#include -#include #include #include #include #include #include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/include/bitcoin/network/async/async.hpp b/include/bitcoin/network/async/async.hpp index cb71955c8..390022925 100644 --- a/include/bitcoin/network/async/async.hpp +++ b/include/bitcoin/network/async/async.hpp @@ -23,9 +23,7 @@ #include #include #include -#include -#include -#include +#include #include #include #include diff --git a/include/bitcoin/network/async/races/race_all.hpp b/include/bitcoin/network/async/races/race_all.hpp new file mode 100644 index 000000000..38834b1f3 --- /dev/null +++ b/include/bitcoin/network/async/races/race_all.hpp @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2011-2024 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_ALL_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_ALL_HPP + +#include +#include +#include +#include + +namespace libbitcoin { +namespace network { + +template +class race_all final +{ +public: + typedef std::shared_ptr ptr; + typedef std::function handler; + + DEFAULT_COPY_MOVE(race_all); + + race_all(handler&& complete) NOEXCEPT; + ~race_all() NOEXCEPT; + +private: + handler complete_; +}; + +} // namespace network +} // namespace libbitcoin + +#include + +#endif diff --git a/include/bitcoin/network/async/race_quality.hpp b/include/bitcoin/network/async/races/race_quality.hpp similarity index 93% rename from include/bitcoin/network/async/race_quality.hpp rename to include/bitcoin/network/async/races/race_quality.hpp index 5a3c6afa0..813d7e849 100644 --- a/include/bitcoin/network/async/race_quality.hpp +++ b/include/bitcoin/network/async/races/race_quality.hpp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_QUALITY_HPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_QUALITY_HPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_QUALITY_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_QUALITY_HPP #include #include @@ -82,6 +82,6 @@ class race_quality final } // namespace network } // namespace libbitcoin -#include +#include #endif diff --git a/include/bitcoin/network/async/race_speed.hpp b/include/bitcoin/network/async/races/race_speed.hpp similarity index 93% rename from include/bitcoin/network/async/race_speed.hpp rename to include/bitcoin/network/async/races/race_speed.hpp index a51af04ae..00eef1eaa 100644 --- a/include/bitcoin/network/async/race_speed.hpp +++ b/include/bitcoin/network/async/races/race_speed.hpp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_SPEED_HPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_SPEED_HPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_SPEED_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_SPEED_HPP #include #include @@ -79,6 +79,6 @@ class race_speed final } // namespace network } // namespace libbitcoin -#include +#include #endif diff --git a/include/bitcoin/network/async/race_unity.hpp b/include/bitcoin/network/async/races/race_unity.hpp similarity index 94% rename from include/bitcoin/network/async/race_unity.hpp rename to include/bitcoin/network/async/races/race_unity.hpp index 90c65437f..4b70cfbb2 100644 --- a/include/bitcoin/network/async/race_unity.hpp +++ b/include/bitcoin/network/async/races/race_unity.hpp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_UNITY_HPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_UNITY_HPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_UNITY_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_UNITY_HPP #include #include @@ -82,6 +82,6 @@ class race_unity final } // namespace network } // namespace libbitcoin -#include +#include #endif diff --git a/include/bitcoin/network/async/race_volume.hpp b/include/bitcoin/network/async/races/race_volume.hpp similarity index 93% rename from include/bitcoin/network/async/race_volume.hpp rename to include/bitcoin/network/async/races/race_volume.hpp index c8816d67a..672637802 100644 --- a/include/bitcoin/network/async/race_volume.hpp +++ b/include/bitcoin/network/async/races/race_volume.hpp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_VOLUME_HPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_VOLUME_HPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_VOLUME_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_VOLUME_HPP #include #include @@ -71,6 +71,6 @@ class race_volume final } // namespace network } // namespace libbitcoin -#include +#include #endif diff --git a/include/bitcoin/network/async/races/races.hpp b/include/bitcoin/network/async/races/races.hpp new file mode 100644 index 000000000..6ca9ae52d --- /dev/null +++ b/include/bitcoin/network/async/races/races.hpp @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2011-2024 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACES_HPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACES_HPP + +#include +#include +#include +#include +#include + +#endif diff --git a/include/bitcoin/network/impl/async/races/race_all.ipp b/include/bitcoin/network/impl/async/races/race_all.ipp new file mode 100644 index 000000000..95430ac92 --- /dev/null +++ b/include/bitcoin/network/impl/async/races/race_all.ipp @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2011-2024 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_ALL_IPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_ALL_IPP + +#include +#include +#include + +namespace libbitcoin { +namespace network { + +template +race_all:: +race_all(handler&& complete) NOEXCEPT + : complete_(std::move(complete)) +{ +} + +template +race_all:: +~race_all() NOEXCEPT +{ + complete_(error::success); +} + +} // namespace network +} // namespace libbitcoin + +#endif diff --git a/include/bitcoin/network/impl/async/race_quality.ipp b/include/bitcoin/network/impl/async/races/race_quality.ipp similarity index 96% rename from include/bitcoin/network/impl/async/race_quality.ipp rename to include/bitcoin/network/impl/async/races/race_quality.ipp index 0fc6d85b7..fdf5e07fc 100644 --- a/include/bitcoin/network/impl/async/race_quality.ipp +++ b/include/bitcoin/network/impl/async/races/race_quality.ipp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_QUALITY_IPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_QUALITY_IPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_QUALITY_IPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_QUALITY_IPP #include #include diff --git a/include/bitcoin/network/impl/async/race_speed.ipp b/include/bitcoin/network/impl/async/races/race_speed.ipp similarity index 96% rename from include/bitcoin/network/impl/async/race_speed.ipp rename to include/bitcoin/network/impl/async/races/race_speed.ipp index 76eceac5d..4a389137a 100644 --- a/include/bitcoin/network/impl/async/race_speed.ipp +++ b/include/bitcoin/network/impl/async/races/race_speed.ipp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_SPEED_IPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_SPEED_IPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_SPEED_IPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_SPEED_IPP #include #include diff --git a/include/bitcoin/network/impl/async/race_unity.ipp b/include/bitcoin/network/impl/async/races/race_unity.ipp similarity index 96% rename from include/bitcoin/network/impl/async/race_unity.ipp rename to include/bitcoin/network/impl/async/races/race_unity.ipp index 344ae4322..cd005934e 100644 --- a/include/bitcoin/network/impl/async/race_unity.ipp +++ b/include/bitcoin/network/impl/async/races/race_unity.ipp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_UNITY_IPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_UNITY_IPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_UNITY_IPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_UNITY_IPP #include #include diff --git a/include/bitcoin/network/impl/async/race_volume.ipp b/include/bitcoin/network/impl/async/races/race_volume.ipp similarity index 96% rename from include/bitcoin/network/impl/async/race_volume.ipp rename to include/bitcoin/network/impl/async/races/race_volume.ipp index 7d36bf23b..492507927 100644 --- a/include/bitcoin/network/impl/async/race_volume.ipp +++ b/include/bitcoin/network/impl/async/races/race_volume.ipp @@ -16,8 +16,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#ifndef LIBBITCOIN_NETWORK_ASYNC_RACE_VOLUME_IPP -#define LIBBITCOIN_NETWORK_ASYNC_RACE_VOLUME_IPP +#ifndef LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_VOLUME_IPP +#define LIBBITCOIN_NETWORK_ASYNC_RACES_RACE_VOLUME_IPP #include #include diff --git a/test/async/races/race_all.cpp b/test/async/races/race_all.cpp new file mode 100644 index 000000000..2a3281028 --- /dev/null +++ b/test/async/races/race_all.cpp @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2011-2024 libbitcoin developers (see AUTHORS) + * + * This file is part of libbitcoin. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +#include "../../test.hpp" + +BOOST_AUTO_TEST_SUITE(race_all_tests) + +BOOST_AUTO_TEST_CASE(race_all_test) +{ + BOOST_REQUIRE(true); +} + +BOOST_AUTO_TEST_SUITE_END() diff --git a/test/async/race_quality.cpp b/test/async/races/race_quality.cpp similarity index 99% rename from test/async/race_quality.cpp rename to test/async/races/race_quality.cpp index f04785f30..9ab4b9657 100644 --- a/test/async/race_quality.cpp +++ b/test/async/races/race_quality.cpp @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include "../test.hpp" +#include "../../test.hpp" BOOST_AUTO_TEST_SUITE(race_quality_tests) diff --git a/test/async/race_speed.cpp b/test/async/races/race_speed.cpp similarity index 99% rename from test/async/race_speed.cpp rename to test/async/races/race_speed.cpp index 7a05e9051..c1381f337 100644 --- a/test/async/race_speed.cpp +++ b/test/async/races/race_speed.cpp @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include "../test.hpp" +#include "../../test.hpp" BOOST_AUTO_TEST_SUITE(race_speed_tests) diff --git a/test/async/race_unity.cpp b/test/async/races/race_unity.cpp similarity index 99% rename from test/async/race_unity.cpp rename to test/async/races/race_unity.cpp index 1007a7a77..538d38845 100644 --- a/test/async/race_unity.cpp +++ b/test/async/races/race_unity.cpp @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include "../test.hpp" +#include "../../test.hpp" BOOST_AUTO_TEST_SUITE(race_unity_tests) diff --git a/test/async/race_volume.cpp b/test/async/races/race_volume.cpp similarity index 99% rename from test/async/race_volume.cpp rename to test/async/races/race_volume.cpp index e09d016cd..63e13e7d3 100644 --- a/test/async/race_volume.cpp +++ b/test/async/races/race_volume.cpp @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -#include "../test.hpp" +#include "../../test.hpp" BOOST_AUTO_TEST_SUITE(race_volume_tests)