diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2013-10-03 17:07:20 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-10 13:08:56 -0500 |
commit | c9343d971c4410c80ff92bd554d61740cd39b8dd (patch) | |
tree | 3d1cfe2c369e7b0a664019d305e6cfd41b0a8523 /src/usr/errl/test/errlReportTest.H | |
parent | cb4b721956f9a0a347db3b838608ffc0b08fd7e5 (diff) | |
download | blackbird-hostboot-c9343d971c4410c80ff92bd554d61740cd39b8dd.tar.gz blackbird-hostboot-c9343d971c4410c80ff92bd554d61740cd39b8dd.zip |
Added common header file for reason code
Change-Id: Ifea8a00b9a36817e0b42054dfb9ce13dad8f15a6
RTC: 76269
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6478
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/test/errlReportTest.H')
-rw-r--r-- | src/usr/errl/test/errlReportTest.H | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/usr/errl/test/errlReportTest.H b/src/usr/errl/test/errlReportTest.H index fc8fc289e..1e22d6419 100644 --- a/src/usr/errl/test/errlReportTest.H +++ b/src/usr/errl/test/errlReportTest.H @@ -49,7 +49,7 @@ class ErrlReportTest: public CxxTest::TestSuite public: /** - * @brief Send a small size error log to FSP + * @brief Send a small size error log to FSP * - Create an error log with only 192 bytes * - Verify that hostbot created error log and sent it to FSP * - Found an issue with FSI mailbox DMA code to realign data len @@ -65,11 +65,11 @@ public: TS_TRACE( "test testErrlReport1"); do { - // Create an error log + // Create an error log l_err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_INFORMATIONAL, - ERRL_TEST_MOD_ID, - ERRL_TEST_REASON_CODE, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, l_userData1, l_userData2); if (l_err == NULL) @@ -80,14 +80,14 @@ public: // Commit error log. errlCommit(l_err, CXXTEST_COMP_ID); - + } while(0); } /** * @brief Send multiple error logs back to back to FSP - * - Create several error logs and send them to FSP in a loop. + * - Create several error logs and send them to FSP in a loop. * - Verify that error logs are created and sent to FSP * - Verify that FSP received all the error logs and log them properly. */ @@ -103,11 +103,11 @@ public: for (l_loopi = 0; l_loopi < 5; l_loopi++) { - // Create an error log + // Create an error log l_err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_INFORMATIONAL, - ERRL_TEST_MOD_ID, - ERRL_TEST_REASON_CODE, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, l_loopi, l_loopi); if (l_err == NULL) @@ -118,7 +118,7 @@ public: // Commit error log errlCommit(l_err, CXXTEST_COMP_ID); - } + } } while(0); } @@ -129,7 +129,7 @@ public: * - Verify that an error log with severity unrecoverable created successfully * - Verify that the error log is sent to FSP * - Verify that FSP log the error as unrecoverable one. - * + * */ void testErrlReport3(void) @@ -144,8 +144,8 @@ public: // Create an error log l_err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_UNRECOVERABLE, - ERRL_TEST_MOD_ID, - ERRL_TEST_REASON_CODE, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, l_userData1, l_userData2); if (l_err == NULL) @@ -172,15 +172,15 @@ public: errlHndl_t l_err = NULL; uint64_t l_userData1 = 0xAAAAAAAA; uint64_t l_userData2 = 0xBBBBBBBB; - + TS_TRACE( "test testErrlReport4"); do { // Create an error log l_err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_CRITICAL_SYS_TERM, - ERRL_TEST_MOD_ID, - ERRL_TEST_REASON_CODE, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, l_userData1, l_userData2); if (l_err == NULL) @@ -197,8 +197,8 @@ public: /** * @brief Send a big size error log to FSP * - Verfiy that an error log with ffdc and traces is created successfully - * - Verify that the error log is sent to FSP - * - Verify that FSP logged the error with correct data successfully + * - Verify that the error log is sent to FSP + * - Verify that FSP logged the error with correct data successfully */ void testErrlReport5(void) { @@ -213,8 +213,8 @@ public: // Create an error log errlHndl_t l_err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_UNRECOVERABLE, - ERRL_TEST_MOD_ID, - ERRL_TEST_REASON_CODE, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, l_userData1, l_userData2); @@ -226,7 +226,7 @@ public: break; } - // add FFDC + // add FFDC const char * l_str = "Error log report testing."; pffdc = l_err->addFFDC( DEVFW_COMP_ID, l_str, strlen( l_str ), 0, 0); if ( NULL == pffdc ) @@ -258,9 +258,9 @@ public: break; } - // Commit error log. + // Commit error log. errlCommit(l_err, CXXTEST_COMP_ID); - + } while(0); } |