summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/trusted/test')
-rwxr-xr-xsrc/usr/secureboot/trusted/test/trustedbootTest.H9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/secureboot/trusted/test/trustedbootTest.H b/src/usr/secureboot/trusted/test/trustedbootTest.H
index e46a8ff4f..635e695ca 100755
--- a/src/usr/secureboot/trusted/test/trustedbootTest.H
+++ b/src/usr/secureboot/trusted/test/trustedbootTest.H
@@ -750,10 +750,13 @@ class TrustedBootTest: public CxxTest::TestSuite
{
int64_t fails = 0, num_ops = 0;
uint8_t digest[TPM_ALG_SHA256_SIZE];
+ TpmLogMgr logMgr;
TRACFCOMP( g_trac_trustedboot,
"testExtendPCR - Start" );
TpmTarget target = getTestTarget();
+ // Assign our log manager
+ target.logMgr = &logMgr;
do
{
@@ -764,6 +767,8 @@ class TrustedBootTest: public CxxTest::TestSuite
break;
}
+ TpmLogMgr_initialize(&logMgr);
+
for (size_t idx = 0; idx < sizeof(digest); idx++)
{
digest[idx] = idx+1;
@@ -798,10 +803,6 @@ class TrustedBootTest: public CxxTest::TestSuite
"testExtendPCR - End: %d/%d fails",
fails, num_ops );
- if (NULL != target.logMgr)
- {
- delete target.logMgr;
- }
}
/**
OpenPOWER on IntegriCloud