diff options
author | Mike Jones <mjjones@us.ibm.com> | 2011-11-17 19:38:31 -0600 |
---|---|---|
committer | MIKE J. JONES <mjjones@us.ibm.com> | 2011-11-21 12:07:50 -0600 |
commit | 11c80c5abcf203e5a65098ea047fd6d2a6e607cc (patch) | |
tree | 1e1a5246e8ed0b25b66e6e1e34bba7622f63bbea /src/usr/hwpf/hwp/fapiTestHwpAttr.C | |
parent | b9d93e82a069b6650f3bd7b43abe6aecc0bf2e4e (diff) | |
download | blackbird-hostboot-11c80c5abcf203e5a65098ea047fd6d2a6e607cc.tar.gz blackbird-hostboot-11c80c5abcf203e5a65098ea047fd6d2a6e607cc.zip |
HWPF: Only support initfile attributes in fapiGetInitFileAttr()
Change-Id: Ia1ffa854d55b68f0e32595080bba323cd52e23a3
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/503
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwpAttr.C')
-rwxr-xr-x | src/usr/hwpf/hwp/fapiTestHwpAttr.C | 50 |
1 files changed, 6 insertions, 44 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpAttr.C b/src/usr/hwpf/hwp/fapiTestHwpAttr.C index df13107dc..55281cf6d 100755 --- a/src/usr/hwpf/hwp/fapiTestHwpAttr.C +++ b/src/usr/hwpf/hwp/fapiTestHwpAttr.C @@ -40,6 +40,7 @@ * camvanng 10/26/2011 Update scratch test * mjjones 10/28/2011 Fix error generation * camvanng 11/09/2011 Update attr enum test + * mjjones 11/17/2011 Removed some initfile attr tests */ #include <fapiTestHwpAttr.H> @@ -805,54 +806,15 @@ fapi::ReturnCode hwpTestAttributes() } //---------------------------------------------------------------------- - // Test getting scratch attributes with the fapiGetInitFileAttr function + // Removed getting scratch attributes using fapiGetInitFileAttr(). This + // now only supports the getting of attributes that are actually used by + // initfiles and those are excercised by the test initfile //---------------------------------------------------------------------- - uint64_t l_val = 0; - fapi::AttributeId l_id; - fapi::AttributeId l_ids[] = {fapi::ATTR_SCRATCH_UINT8_1, - fapi::ATTR_SCRATCH_UINT8_2, - fapi::ATTR_SCRATCH_UINT32_1, - fapi::ATTR_SCRATCH_UINT32_2, - fapi::ATTR_SCRATCH_UINT64_1, - fapi::ATTR_SCRATCH_UINT64_2, - fapi::ATTR_SCRATCH_UINT8_ARRAY_1, - fapi::ATTR_SCRATCH_UINT8_ARRAY_2, - fapi::ATTR_SCRATCH_UINT32_ARRAY_1, - fapi::ATTR_SCRATCH_UINT32_ARRAY_2, - fapi::ATTR_SCRATCH_UINT64_ARRAY_1, - fapi::ATTR_SCRATCH_UINT64_ARRAY_2}; - - for (uint32_t i = 0; i < 12; i++) - { - l_val = 7; - l_id = l_ids[i]; - l_rc = fapiGetInitFileAttr(l_id, NULL, l_val); - - if (l_rc) - { - FAPI_ERR("hwpTestAttributes: ID: %d. Error 0x%x from fapiGetInitFileAttr", - l_ids[i], static_cast<uint32_t>(l_rc)); - break; - } - - if (l_val != 0) - { - FAPI_SET_HWP_ERROR(l_rc, RC_HWP_ATTR_UNIT_TEST_FAIL); - FAPI_ERR("hwpTestAttributes: ID: %d. Get returned %d", - l_ids[i], static_cast<uint32_t>(l_val)); - break; - } - } - - if (l_rc) - { - break; - } //---------------------------------------------------------------------- - // Test getting an invalid scratch attribute with the - // fapiGetInitFileAttr function + // Test getting an invalid attribute using fapiGetInitFileAttr() //---------------------------------------------------------------------- + uint64_t l_val = 0; fapi::AttributeId l_badId = static_cast<fapi::AttributeId>(0xff); l_rc = fapiGetInitFileAttr(l_badId, NULL, l_val); |