From fc29cc227d80373c33a4b0d3fa4b075583293353 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 9 Jul 2026 19:41:09 -0400 Subject: [PATCH] Punt debug death tests on VOIDSTAR builds --- src/tests/libxrpl/basics/base_uint_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/libxrpl/basics/base_uint_test.cpp b/src/tests/libxrpl/basics/base_uint_test.cpp index 4972c86e19..bfe247c6a4 100644 --- a/src/tests/libxrpl/basics/base_uint_test.cpp +++ b/src/tests/libxrpl/basics/base_uint_test.cpp @@ -126,6 +126,9 @@ using BaseUintDeathTest = BaseUintTest; TEST_F(BaseUintDeathTest, fromRaw_size_mismatch) { + // ENABLE_VOIDSTAR is a debug build, but does not crash on failed asserts. Rather than twist + // these tests into knots to make them work, just skip them. +#ifndef ENABLE_VOIDSTAR EXPECT_DEBUG_DEATH( ({ // Container smaller than the base_uint (8 bytes vs 12 bytes for @@ -185,6 +188,7 @@ TEST_F(BaseUintDeathTest, fromRaw_size_mismatch) EXPECT_EQ(resultText, "0102030405060708090A0B0C") << resultText; }), "input size match"); +#endif } TEST_F(BaseUintTest, base_uint)