diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2016-05-23 12:53:34 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-25 14:01:24 -0400 |
commit | e7bf1f8a1aa1ee93407701c254053999d2e282b2 (patch) | |
tree | 48f9918cd08c3168cfddc5138d3d1dfd500f549a /src/usr/fapi2 | |
parent | 5563842324d33ac56f717e0b09847d720c52551a (diff) | |
download | blackbird-hostboot-e7bf1f8a1aa1ee93407701c254053999d2e282b2.tar.gz blackbird-hostboot-e7bf1f8a1aa1ee93407701c254053999d2e282b2.zip |
Remove references to deprecated Target::getOtherEnd() method
Change-Id: I06da5293307b7a6604a817ff96af4778698fbbe0
RTC: 154453
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24928
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2')
-rw-r--r-- | src/usr/fapi2/test/fapi2GetOtherEndTest.H | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/src/usr/fapi2/test/fapi2GetOtherEndTest.H b/src/usr/fapi2/test/fapi2GetOtherEndTest.H index da47dbc85..7987fbe8a 100644 --- a/src/usr/fapi2/test/fapi2GetOtherEndTest.H +++ b/src/usr/fapi2/test/fapi2GetOtherEndTest.H @@ -98,41 +98,6 @@ void test_fapi2GetOtherEnd() } } - - for(uint32_t i = 0; i < chipListNonFunct.size(); i++) - { - chipListNonFunct[i]-> - tryGetAttr<TARGETING::ATTR_PEER_TARGET>(l_peerTarget); - const fapi2::Target<fapi2::TARGET_TYPE_XBUS> - fapi2_xbusTargetPeerPlatform(l_peerTarget); - const fapi2::Target<fapi2::TARGET_TYPE_XBUS> - fapi2_xbusTarget(chipListNonFunct[i]); - if(l_peerTarget && l_peerTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().present) - { - numTests++; - fapi2_xbusTargetPeer = fapi2_xbusTarget.getOtherEnd<TARGET_TYPE_XBUS>(TARGET_STATE_PRESENT); - if(fapi2_xbusTargetPeer) - { - if(fapi2_xbusTargetPeerPlatform != fapi2_xbusTargetPeer) - { - TS_FAIL("fapiGetOtherEnd::test 2 getOtherEnd returned the incorrect target! expected %x, instead got %x ", TARGETING::get_huid(l_peerTarget), TARGETING::get_huid(static_cast<TARGETING::Target*>(fapi2_xbusTargetPeer))); - numFails++; - break; - } - } - else - { - TS_FAIL("fapiGetOtherEnd::test 2 getOtherEnd returned failed to return a target although it should have returned %x", TARGETING::get_huid(l_peerTarget)); - numFails++; - break; - } - } - else - { - FAPI_ERR("fapiGetOtherEnd::test 2 WARNING ! Target with HUID: %x has an unreachable peer target", chipListNonFunct[i]); - } - } - // Create a vector of TARGETING::Target pointers TARGETING::TargetHandleList chipListFunct; @@ -181,40 +146,6 @@ void test_fapi2GetOtherEnd() } } - for(uint32_t i = 0; i < chipListFunct.size(); i++) - { - chipListFunct[i]->tryGetAttr<TARGETING::ATTR_PEER_TARGET>(l_peerTarget); - const fapi2::Target<fapi2::TARGET_TYPE_XBUS> - fapi2_xbusTargetPeerPlatform(l_peerTarget); - const fapi2::Target<fapi2::TARGET_TYPE_XBUS> - fapi2_xbusTarget(chipListFunct[i]); - - if(l_peerTarget && l_peerTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) - { - numTests++; - fapi2_xbusTargetPeer = fapi2_xbusTarget.getOtherEnd<TARGET_TYPE_XBUS>(TARGET_STATE_FUNCTIONAL); - if(fapi2_xbusTargetPeer) - { - if(fapi2_xbusTargetPeerPlatform != fapi2_xbusTargetPeer) - { - TS_FAIL("fapiGetOtherEnd::test 4 getOtherEnd returned the incorrect target! expected %x, instead got %x ", TARGETING::get_huid(l_peerTarget), TARGETING::get_huid(static_cast<TARGETING::Target*>(fapi2_xbusTargetPeer))); - numFails++; - break; - } - } - else - { - TS_FAIL("fapiGetOtherEnd::test 4 getOtherEnd returned failed to return a target although it should have returned %x", TARGETING::get_huid(l_peerTarget)); - numFails++; - break; - } - } - else - { - FAPI_ERR("fapiGetOtherEnd:: test 4 WARNING ! Target with HUID: %x has an unreachable or non-functional peer target", TARGETING::get_huid(chipListFunct[i])); - } - } - FAPI_INF("fapi2GetOtherEndTest:: Test Complete. %d/%d fails", numFails, numTests); }while(0); @@ -223,4 +154,4 @@ void test_fapi2GetOtherEnd() }; -}
\ No newline at end of file +} |