From 8a6bae6006b136aa579e6fea9ed4678081beaa31 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 2 Mar 2021 21:54:47 -0600 Subject: [PATCH] Fix tests These tests did not properly define their BOOST_TEST_MODULE macro, causing linking to fail in some environments. --- tests/betting/betting_tests.cpp | 3 +++ tests/peerplays_sidechain/peerplays_sidechain_tests.cpp | 4 ++-- tests/performance/performance_tests.cpp | 3 +++ tests/random/random_tests.cpp | 3 +++ tests/tournament/tournament_tests.cpp | 3 +++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/betting/betting_tests.cpp b/tests/betting/betting_tests.cpp index 5ac3d8c8..09ed9c38 100644 --- a/tests/betting/betting_tests.cpp +++ b/tests/betting/betting_tests.cpp @@ -21,6 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +#define BOOST_TEST_MODULE Peerplays Betting Tests + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // disable auto_ptr deprecated warning, see https://svn.boost.org/trac10/ticket/11622 diff --git a/tests/peerplays_sidechain/peerplays_sidechain_tests.cpp b/tests/peerplays_sidechain/peerplays_sidechain_tests.cpp index 84577384..d14fa602 100644 --- a/tests/peerplays_sidechain/peerplays_sidechain_tests.cpp +++ b/tests/peerplays_sidechain/peerplays_sidechain_tests.cpp @@ -1,7 +1,7 @@ -#include - #define BOOST_TEST_MODULE Peerplays SON Tests +#include + BOOST_AUTO_TEST_CASE(peerplays_sidechain) { } diff --git a/tests/performance/performance_tests.cpp b/tests/performance/performance_tests.cpp index 70824818..5f36a3fc 100644 --- a/tests/performance/performance_tests.cpp +++ b/tests/performance/performance_tests.cpp @@ -21,6 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +#define BOOST_TEST_MODULE Performance Tests + #include #include diff --git a/tests/random/random_tests.cpp b/tests/random/random_tests.cpp index e224439a..db30658d 100644 --- a/tests/random/random_tests.cpp +++ b/tests/random/random_tests.cpp @@ -21,6 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +#define BOOST_TEST_MODULE Random Tests + #include //#include //#include diff --git a/tests/tournament/tournament_tests.cpp b/tests/tournament/tournament_tests.cpp index 1c5f51f7..ba0cffe2 100644 --- a/tests/tournament/tournament_tests.cpp +++ b/tests/tournament/tournament_tests.cpp @@ -21,6 +21,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +#define BOOST_TEST_MODULE Peerplays Tournament Tests + #include #include #include