Skip to content

Commit

Permalink
[mux]: Fix UTs segmentation fault (sonic-net#2760)
Browse files Browse the repository at this point in the history
* Fix segmentation fault is observed during SWSS compilation:
  • Loading branch information
nazariig authored May 5, 2023
1 parent 750e064 commit 04a6691
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/mock_tests/mux_rollback_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,16 @@ namespace mux_rollback_test
CFG_PEER_SWITCH_TABLE_NAME
};

vector<string> buffer_tables = {
APP_BUFFER_POOL_TABLE_NAME,
APP_BUFFER_PROFILE_TABLE_NAME,
APP_BUFFER_QUEUE_TABLE_NAME,
APP_BUFFER_PG_TABLE_NAME,
APP_BUFFER_PORT_INGRESS_PROFILE_LIST_NAME,
APP_BUFFER_PORT_EGRESS_PROFILE_LIST_NAME
};
gBufferOrch = new BufferOrch(m_app_db.get(), m_config_db.get(), m_state_db.get(), buffer_tables);

TableConnector stateDbSwitchTable(m_state_db.get(), STATE_SWITCH_CAPABILITY_TABLE_NAME);
TableConnector app_switch_table(m_app_db.get(), APP_SWITCH_TABLE_NAME);
TableConnector conf_asic_sensors(m_config_db.get(), CFG_ASIC_SENSORS_TABLE_NAME);
Expand Down

0 comments on commit 04a6691

Please sign in to comment.