summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas/test/hwasGardTest.H
diff options
context:
space:
mode:
authorMatt Ploetz <maploetz@us.ibm.com>2013-09-24 11:03:02 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-10-12 14:51:14 -0500
commit4e536844c21b0ab7c256e49c63e8e9520c9e1d19 (patch)
tree03fa743c3e3f5c00cf1d44a936a3c92c7673b48c /src/usr/hwas/test/hwasGardTest.H
parenteffbdc22da60af7ae67f69005f63a6a6e4db773d (diff)
downloadtalos-hostboot-4e536844c21b0ab7c256e49c63e8e9520c9e1d19.tar.gz
talos-hostboot-4e536844c21b0ab7c256e49c63e8e9520c9e1d19.zip
Hardware Reconfigure loop and Istepdispatcher redesign
Change-Id: Icc037be6b0eac67d1b5196180f8a53f083afa085 RTC: 34055 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6324 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/test/hwasGardTest.H')
-rw-r--r--src/usr/hwas/test/hwasGardTest.H18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/usr/hwas/test/hwasGardTest.H b/src/usr/hwas/test/hwasGardTest.H
index c63ed3dcb..7b66bf888 100644
--- a/src/usr/hwas/test/hwasGardTest.H
+++ b/src/usr/hwas/test/hwasGardTest.H
@@ -265,6 +265,9 @@ public:
// Get the current HWAS_STATE of the target
HwasState l_origState = l_pTarget->getAttr<ATTR_HWAS_STATE>();
+ // get the current status/counter
+ uint32_t l_origStatus = theDeconfigGard().getDeconfigureStatus();
+
// Deconfigure the target.
l_pErr = theDeconfigGard().
deconfigureTarget(*l_pTarget, 0xA);
@@ -274,6 +277,12 @@ public:
break;
}
+ // confirm the counter changed
+ if (l_origStatus == theDeconfigGard().getDeconfigureStatus())
+ {
+ TS_FAIL("testDeconfigure4: unchanged deconfigureStatus");
+ }
+
// Deconfigure the target again
l_pErr = theDeconfigGard().
deconfigureTarget(*l_pTarget, 0xB);
@@ -685,10 +694,19 @@ public:
// Get the original HWAS_STATE of the target
HwasState l_origState = l_pTarget->getAttr<ATTR_HWAS_STATE>();
+ // get the current status/counter
+ uint32_t l_origStatus = theDeconfigGard().getDeconfigureStatus();
+
// create a deconfigure record
theDeconfigGard().
registerDeferredDeconfigure(*l_pTarget, 0x12);
+ // confirm the counter changed
+ if (l_origStatus == theDeconfigGard().getDeconfigureStatus())
+ {
+ TS_FAIL("testDefDeconfig1: unchanged deconfigureStatus");
+ }
+
// call function to process deferred deconfigure records
bool l_processed = processDeferredDeconfig();
OpenPOWER on IntegriCloud