summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/fapi2/test/fapi2GetChildrenTest.H19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/usr/fapi2/test/fapi2GetChildrenTest.H b/src/usr/fapi2/test/fapi2GetChildrenTest.H
index 3a35113c1..15ca26fe4 100644
--- a/src/usr/fapi2/test/fapi2GetChildrenTest.H
+++ b/src/usr/fapi2/test/fapi2GetChildrenTest.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -137,7 +137,7 @@ void test_fapi2GetChildren()
std::vector<Target<fapi2::TARGET_TYPE_CORE> > l_childCores;
std::vector<Target<fapi2::TARGET_TYPE_MCA> > l_childMCAs;
std::vector<Target<fapi2::TARGET_TYPE_EQ> > l_childEQs;
- std::vector<Target<fapi2::TARGET_TYPE_XBUS> > l_childXBUSs;
+ std::vector<Target<fapi2::TARGET_TYPE_EX> > l_childEXs;
// @TODO RTC:148761
// Need to figure out how we are going to set up this relationship
// l_childMCAs = fapi2_mcbistTarget.getChildren<fapi2::TARGET_TYPE_MCA>(TARGET_STATE_PRESENT);
@@ -225,6 +225,21 @@ void test_fapi2GetChildren()
break;
}
+ //Explicitly make sure getChildren for EX targets works
+ l_childEXs = fapi2_procTarget.getChildren<fapi2::TARGET_TYPE_EX>(TARGET_STATE_PRESENT);
+ l_targetHuid = TARGETING::get_huid(l_nimbusProc) ;
+ l_actualSize = l_childEXs.size();
+
+ //Set expected size to be the number of Exs per proc
+ l_expectedSize = EQ_PER_PROC * EX_PER_EQ;
+ numTests++;
+ if(l_actualSize != l_expectedSize)
+ {
+ FAPI_INF("fapi2TargetTest:: EXs per proc mismatch");
+ numFails++;
+ break;
+ }
+
// Test pervasive children
// Valid children for PERV:
OpenPOWER on IntegriCloud