From 9d525e82f533d2dd246d6e36c728579995c70d42 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 11 Nov 2022 20:31:39 +0000 Subject: [PATCH] Fix qa tests so they don't assert on cleanup. --- qa/unittests/pcbnew/test_board_item.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/unittests/pcbnew/test_board_item.cpp b/qa/unittests/pcbnew/test_board_item.cpp index b4b2939fbb..18104e588d 100644 --- a/qa/unittests/pcbnew/test_board_item.cpp +++ b/qa/unittests/pcbnew/test_board_item.cpp @@ -62,6 +62,11 @@ public: { } + ~TEST_BOARD_ITEM_FIXTURE() + { + m_text.SetParentGroup( nullptr ); + } + BOARD_ITEM* Instantiate( KICAD_T aType ) { if( !IsPcbnewType( aType ) )