PEL: Add callouts to pelFactory()'s test PEL
Add a hardware callout to the PEL that gets returned from pelFactory()
in unit test.
This brings the size up to between 400 and 500 so there is also a
testcase update that needs to be made so it doesn't assert.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I64e9ee99c4bae7c804b1c559b8f2f59f6ad828fc
diff --git a/test/openpower-pels/pel_utils.cpp b/test/openpower-pels/pel_utils.cpp
index cf7a75f..8da41ba 100644
--- a/test/openpower-pels/pel_utils.cpp
+++ b/test/openpower-pels/pel_utils.cpp
@@ -260,8 +260,9 @@
data.at(offset + actionFlagsUHOffset + 1) = actionFlags;
// Use the default SRC, failing MTMS, and ext user Header sections
- data.insert(data.end(), srcSectionNoCallouts.begin(),
- srcSectionNoCallouts.end());
+ auto src = pelDataFactory(TestPELType::primarySRCSection2Callouts);
+
+ data.insert(data.end(), src.begin(), src.end());
data.insert(data.end(), failingMTMSSection.begin(),
failingMTMSSection.end());
data.insert(data.end(), ExtUserHeaderSection.begin(),
diff --git a/test/openpower-pels/repository_test.cpp b/test/openpower-pels/repository_test.cpp
index 4bc3282..403245a 100644
--- a/test/openpower-pels/repository_test.cpp
+++ b/test/openpower-pels/repository_test.cpp
@@ -834,7 +834,7 @@
EXPECT_FALSE(repo.sizeWarning());
// Now at 96%
- auto data = pelFactory(id++, 'B', 0x20, 0x8800, 400);
+ auto data = pelFactory(id++, 'B', 0x20, 0x8800, 500);
auto pel = std::make_unique<PEL>(data);
repo.add(pel);