From 66a6a6d4487548592e4c3157f2e710b4e0b217df Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 24 Dec 2021 11:37:27 +0000 Subject: [PATCH] Attempt to fix test case, and improve debugging output. --- include/core/typeinfo.h | 1 + qa/common/test_types.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/core/typeinfo.h b/include/core/typeinfo.h index e8c572fc93..5d19e48279 100644 --- a/include/core/typeinfo.h +++ b/include/core/typeinfo.h @@ -395,6 +395,7 @@ constexpr bool IsPcbnewType( const KICAD_T aType ) case PCB_DIM_ALIGNED_T: case PCB_DIM_LEADER_T: case PCB_DIM_CENTER_T: + case PCB_DIM_RADIAL_T: case PCB_DIM_ORTHOGONAL_T: case PCB_TARGET_T: case PCB_ZONE_T: diff --git a/qa/common/test_types.cpp b/qa/common/test_types.cpp index 59583f143f..f3e1914281 100644 --- a/qa/common/test_types.cpp +++ b/qa/common/test_types.cpp @@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE( AllCorrect ) { KICAD_T type = static_cast( i ); - BOOST_CHECK( IsTypeCorrect( type ) ); + BOOST_CHECK_MESSAGE( IsTypeCorrect( type ), "Failed for " << type ); } }