qa: follow up router API changes in the PNS log player/regression test tool

This commit is contained in:
Tomasz Wlostowski 2023-01-09 23:18:51 +01:00
parent aa7271e55a
commit dd1a780d1f
2 changed files with 6 additions and 4 deletions

View File

@ -67,8 +67,8 @@ void PNS_LOG_PLAYER::createRouter()
const PNS_LOG_FILE::COMMIT_STATE PNS_LOG_PLAYER::GetRouterUpdatedItems()
{
PNS_LOG_FILE::COMMIT_STATE state;
std::vector<PNS::ITEM*> added, removed;
m_router->GetUpdatedItems( removed, added );
std::vector<PNS::ITEM*> added, removed, heads;
m_router->GetUpdatedItems( removed, added, heads );
//printf("a %d r %d\n", added.size(), removed.size() );
for( auto item : removed )
@ -81,6 +81,8 @@ const PNS_LOG_FILE::COMMIT_STATE PNS_LOG_PLAYER::GetRouterUpdatedItems()
state.m_addedItems.insert( item );
}
// fixme: update the state with the head trace (not supported in current testsuite)
return state;
}

View File

@ -232,8 +232,7 @@ void PNS_LOG_VIEWER_FRAME::drawSimpleShape( SHAPE* aShape, bool aIsSelected, con
case SH_LINE_CHAIN:
{
auto lc = static_cast<SHAPE_LINE_CHAIN*>( aShape );
m_overlay->AnnotatedPolyline( *lc, aName,
m_showVertices || aIsSelected );
m_overlay->AnnotatedPolyline( *lc, aName, m_showVertices || aIsSelected );
break;
}
@ -746,6 +745,7 @@ static void collapseAllChildren( wxTreeListCtrl* tree )
void PNS_LOG_VIEWER_FRAME::updateDumpPanel( int iter )
{
printf("UpdateDUmp %d\n", iter );
if( !m_logPlayer )
return;