summaryrefslogtreecommitdiffstats
path: root/src/usr/cxxtest
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-03-06 13:32:44 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-03-07 14:20:46 -0600
commite016f3f0eb6e126f410e66ff3623c8a6d5850b81 (patch)
tree50f09e37a15868475404bde23d3cbb211940394c /src/usr/cxxtest
parent4083a7cd7829d52121eb26bf41a12d8d298d2062 (diff)
downloadtalos-hostboot-e016f3f0eb6e126f410e66ff3623c8a6d5850b81.tar.gz
talos-hostboot-e016f3f0eb6e126f410e66ff3623c8a6d5850b81.zip
Ensure error logs during IPL are caught as CxxTest fail.
RTC: 39871 Change-Id: I6a3045609d696f5d7d6f3d240da17a150ad70af7 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9362 Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/cxxtest')
-rw-r--r--src/usr/cxxtest/cxxtestexec.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/cxxtest/cxxtestexec.C b/src/usr/cxxtest/cxxtestexec.C
index 38fa2f501..5b956dc27 100644
--- a/src/usr/cxxtest/cxxtestexec.C
+++ b/src/usr/cxxtest/cxxtestexec.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -88,6 +88,13 @@ void cxxinit( errlHndl_t &io_taskRetErrl )
__sync_add_and_fetch(&CxxTest::g_ModulesStarted, 1);
+ // Before we launch, ensure there aren't any residual error logs from
+ // the IPL.
+ if (ERRORLOG::ErrlManager::errlCommittedThisBoot())
+ {
+ TS_FAIL("Error logs committed previously during IPL.");
+ }
+
for(std::vector<const char *>::const_iterator i = module_list.begin();
i != module_list.end(); ++i)
{
OpenPOWER on IntegriCloud