summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime/test/hdatservicetest.H
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2013-08-19 08:56:23 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-09-13 17:38:38 -0500
commit5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f (patch)
tree6c8e663be551562a7835d4f554a13e5afe7e317a /src/usr/runtime/test/hdatservicetest.H
parent45f3421a82460ed2ce5dd86d3bb62209ac9d948e (diff)
downloadtalos-hostboot-5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f.tar.gz
talos-hostboot-5d8dd9af9d7a4df742ebbd8cdf20c58a8e95b05f.zip
Catch overrun of HSVC attributes in HDAT
Ran into a problem integrating a new HB release that would have been a lot easier to debug if this code had been there. Change-Id: I3c420172bcff25a7042d3ee603f179273ba88761 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5827 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/runtime/test/hdatservicetest.H')
-rw-r--r--src/usr/runtime/test/hdatservicetest.H13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/runtime/test/hdatservicetest.H b/src/usr/runtime/test/hdatservicetest.H
index 4ddc089ea..3094e80aa 100644
--- a/src/usr/runtime/test/hdatservicetest.H
+++ b/src/usr/runtime/test/hdatservicetest.H
@@ -418,6 +418,19 @@ class HdatServiceTest: public CxxTest::TestSuite
TS_FAIL("testSpira> Size of SPIRA_H data too small");
}
+ errhdl = new ERRORLOG::ErrlEntry(
+ ERRORLOG::ERRL_SEV_UNRECOVERABLE,
+ RUNTIME::MOD_HDATSERVICE_VERIFY_HDAT_ADDRESS,
+ RUNTIME::RC_BAD_HDAT_HEADER,
+ 0,0 );
+ add_host_data_ffdc(RUNTIME::HSVC_NODE_DATA,errhdl);
+ add_host_data_ffdc(RUNTIME::HSVC_SYSTEM_DATA,errhdl);
+ add_host_data_ffdc(RUNTIME::NACA,errhdl);
+ add_host_data_ffdc(RUNTIME::SPIRA_L,errhdl);
+ add_host_data_ffdc(RUNTIME::SPIRA_S,errhdl);
+ add_host_data_ffdc(RUNTIME::SPIRA_H,errhdl);
+ errlCommit(errhdl,RUNTIME_COMP_ID);
+
TRACFCOMP( g_trac_runtime, "testSpira> finish" );
#endif
OpenPOWER on IntegriCloud