summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2011-11-21 11:34:08 -0600
committerMIKE J. JONES <mjjones@us.ibm.com>2011-11-21 16:46:30 -0600
commit72067b1914df3a532ccbb5e4f250d9de41c3f147 (patch)
tree6099a064c7c4e9271329bc62de8843baf27a7f13 /src/usr/hwpf
parent28bbbe9b58d431192f028fef5ea457ca0f5cc817 (diff)
downloadblackbird-hostboot-72067b1914df3a532ccbb5e4f250d9de41c3f147.tar.gz
blackbird-hostboot-72067b1914df3a532ccbb5e4f250d9de41c3f147.zip
Eliminate commit of most expected unit-test HWPF errors
Change-Id: I9da47879e54db63fbc086b622039909f2e48504b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/510 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf')
-rwxr-xr-xsrc/usr/hwpf/hwp/fapiTestHwpAttr.C6
-rw-r--r--src/usr/hwpf/test/hwpftest.H7
2 files changed, 9 insertions, 4 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpAttr.C b/src/usr/hwpf/hwp/fapiTestHwpAttr.C
index 55281cf6d..8c6b117ad 100755
--- a/src/usr/hwpf/hwp/fapiTestHwpAttr.C
+++ b/src/usr/hwpf/hwp/fapiTestHwpAttr.C
@@ -820,9 +820,11 @@ fapi::ReturnCode hwpTestAttributes()
if (l_rc)
{
- FAPI_INF("hwpTestAttributes: Logging expected error 0x%x from fapiGetInitFileAttr",
+ // Delete the error rather than logging it to avoid it getting
+ // interpreted as a real problem
+ FAPI_INF("hwpTestAttributes: Deleting expected error 0x%x from fapiGetInitFileAttr",
static_cast<uint32_t>(l_rc));
- fapiLogError(l_rc);
+ l_rc = fapi::FAPI_RC_SUCCESS;
break;
}
else
diff --git a/src/usr/hwpf/test/hwpftest.H b/src/usr/hwpf/test/hwpftest.H
index 9ee01f465..c46613c3a 100644
--- a/src/usr/hwpf/test/hwpftest.H
+++ b/src/usr/hwpf/test/hwpftest.H
@@ -96,8 +96,11 @@ public:
if (l_err)
{
- TS_TRACE("testHwpf2: Unit Test passed. hwpTestError failed. Error logged");
- errlCommit(l_err,HWPF_COMP_ID);
+ // Delete the error rather than committing it to avoid it getting
+ // interpreted as a real problem
+ TS_TRACE("testHwpf2: Unit Test passed. hwpTestError failed. Error deleted");
+ delete l_err;
+ l_err = NULL;
}
else
{
OpenPOWER on IntegriCloud