diff options
author | Caleb Palmer <cnpalmer@us.ibm.com> | 2016-07-27 14:09:06 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-08-31 17:59:25 -0400 |
commit | 06b0dd98b87dcf48f5a0207f9e28d458dba31c3c (patch) | |
tree | 157c362025b84bcb62b0f5ba7dfdb4fe34d9bdd5 /src/usr/diag/mdia/test/mdiatestsm.H | |
parent | 2042a996bdaae02156b6e016b79f4e6d92c15bdd (diff) | |
download | blackbird-hostboot-06b0dd98b87dcf48f5a0207f9e28d458dba31c3c.tar.gz blackbird-hostboot-06b0dd98b87dcf48f5a0207f9e28d458dba31c3c.zip |
MDIA: restore processMaintCommandEvent
Change-Id: Ic1a5ca62f2377a82f97091080d40a4596acd6593
RTC: 145132
Depends-on: I19998ff824d089dcf600074c77ab0c4c2edba15a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24223
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/diag/mdia/test/mdiatestsm.H')
-rw-r--r-- | src/usr/diag/mdia/test/mdiatestsm.H | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/usr/diag/mdia/test/mdiatestsm.H b/src/usr/diag/mdia/test/mdiatestsm.H index 7a8716a2a..489a68dd8 100644 --- a/src/usr/diag/mdia/test/mdiatestsm.H +++ b/src/usr/diag/mdia/test/mdiatestsm.H @@ -591,6 +591,46 @@ class MdiaSmTest : public CxxTest::TestSuite } + void testProcessMaintCommandEvent(void) + { + TS_TRACE(ENTER_MRK "testProcessMaintCommandEvent"); + + StateMachine sm; + WorkFlowAssocMap list; + TargetHandleList targets; + + getTargets(2, targets); + + list[targets[0]].push_back(DUMMY_SYNC_PHASE); + list[targets[1]].push_back(DUMMY_SYNC_PHASE); + + sm.setup(list); + + TargetHandleList mcbistList; + getAllChiplets(mcbistList, TYPE_MCBIST); + TargetHandle_t mcbist = mcbistList[0]; + + MaintCommandEvent event; + event.target = mcbist; + event.type = COMMAND_COMPLETE; + bool rc = false; + + rc = sm.processMaintCommandEvent(event); + if (true == rc) + { + TS_TRACE("testProcessMaintCommandEvent: " + "a work item was dispatched"); + } + else + { + TS_TRACE("testProcessMaintCommandEvent: " + "a work item was not dispatched"); + + } + + TS_TRACE(EXIT_MRK "testProcessMaintCommandEvent"); + } + void testSmRun(void) { using namespace MDIA; |