diff options
Diffstat (limited to 'src/usr/errl')
| -rw-r--r-- | src/usr/errl/errlentry_consts.H | 2 | ||||
| -rw-r--r-- | src/usr/errl/test/errltest.H | 12 | 
2 files changed, 13 insertions, 1 deletions
| diff --git a/src/usr/errl/errlentry_consts.H b/src/usr/errl/errlentry_consts.H index 2577cb196..4fea8b042 100644 --- a/src/usr/errl/errlentry_consts.H +++ b/src/usr/errl/errlentry_consts.H @@ -77,6 +77,7 @@ struct epubTargetTypeToSub_t  const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] =  {      // This list must be kept sorted by TYPE +    // Look at generated file  attributeenums.H to see order      { TARGETING::TYPE_NODE             , EPUB_CEC_HDW_SUBSYS       },      { TARGETING::TYPE_DIMM             , EPUB_MEMORY_DIMM          },      { TARGETING::TYPE_MEMBUF           , EPUB_MEMORY_SUBSYS        }, @@ -100,6 +101,7 @@ const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] =      { TARGETING::TYPE_PHB              , EPUB_IO_PHB               },      { TARGETING::TYPE_TPM              , EPUB_CEC_HDW_SUBSYS       },      { TARGETING::TYPE_MC               , EPUB_MEMORY_SUBSYS        }, +    { TARGETING::TYPE_SMPGROUP         , EPUB_CEC_HDW_SUBSYS       },  };  struct epubBusTypeToSub_t diff --git a/src/usr/errl/test/errltest.H b/src/usr/errl/test/errltest.H index 00a5f90f6..ff5df6b65 100644 --- a/src/usr/errl/test/errltest.H +++ b/src/usr/errl/test/errltest.H @@ -1176,7 +1176,7 @@ public:      /**       * @brief Verify subsystem mapping       * -     * Simple test for now that targets test for TYPE_MC related defect +     * Simple test for now that targets test for defects in this area       * Can be expanded on later if time permits       */      void testErrl_verifySubsystem(void) @@ -1199,6 +1199,16 @@ public:          {              TS_INFO( "Correct subsystem type returned for TYPE_MC!" );          } + +        l_subsys = l_err->getSubSystem(TARGETING::TYPE_SMPGROUP); +        if(l_subsys != EPUB_CEC_HDW_SUBSYS) +        { +            TS_FAIL( "Incorrect subsystem type returned for TYPE_SMPGROUP" ); +        } +        else +        { +            TS_INFO( "Correct subsystem type returned for TYPE_SMPGROUP!" ); +        }          // Delete the log          delete l_err;          l_err = NULL; | 

