diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2017-11-17 15:49:30 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-11-30 09:08:08 -0500 |
commit | c336a77283197bd63475f0773b78473c7c239567 (patch) | |
tree | 9cd1c13e5e106541c9e1914865aef18082f27187 /src/usr/secureboot | |
parent | 4c1c57f0015efea51fb6c47ded6a6ec05ed27978 (diff) | |
download | talos-hostboot-c336a77283197bd63475f0773b78473c7c239567.tar.gz talos-hostboot-c336a77283197bd63475f0773b78473c7c239567.zip |
Handle comments from pre-verify and runtime lid loading commits
Change-Id: I224079808493c062f04b7c3a59d45128a8f2e699
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49875
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot')
-rw-r--r-- | src/usr/secureboot/runtime/test/testsecureboot_rt.H | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/usr/secureboot/runtime/test/testsecureboot_rt.H b/src/usr/secureboot/runtime/test/testsecureboot_rt.H index f728357e2..380b9eb0c 100644 --- a/src/usr/secureboot/runtime/test/testsecureboot_rt.H +++ b/src/usr/secureboot/runtime/test/testsecureboot_rt.H @@ -191,11 +191,18 @@ class SecurebootRtTestSuite: public CxxTest::TestSuite } else { - TS_FAIL("testAccessSecurePnorSection: unexpected reason code for Secure Section %s. Expected RC 0x%.4X Actual RC 0x%.4X", - PNOR::SectionIdToString(i_id), - PNOR::RC_RTPNOR_INVALID_SECTION, - l_errl->reasonCode()); - errlCommit(l_errl, SECURE_COMP_ID); + if (l_errl) + { + TS_FAIL("testAccessSecurePnorSection: unexpected reason code for Secure Section %s. Expected RC 0x%.4X Actual RC 0x%.4X", + PNOR::SectionIdToString(i_id), + PNOR::RC_RTPNOR_INVALID_SECTION, + l_errl->reasonCode()); + errlCommit(l_errl, SECURE_COMP_ID); + } + else + { + TS_FAIL("testAccessSecurePnorSection: no error found when one was expected"); + } } } else if(l_errl) |