From 6a4bf623a6f2c7c969431944cd684c8d98bcb1ae Mon Sep 17 00:00:00 2001 From: Thi Tran Date: Thu, 26 May 2016 14:54:34 -0500 Subject: Attribute Review - Nest Change-Id: I6af714a8975122a4e83c955a21913ede0d643453 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23164 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Daniel M. Crowell Reviewed-by: Joseph J. McGill Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23168 Tested-by: FSP CI Jenkins --- src/usr/runtime/test/runtimeattrstest.H | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/usr/runtime/test') diff --git a/src/usr/runtime/test/runtimeattrstest.H b/src/usr/runtime/test/runtimeattrstest.H index 478f405ea..0eb628cf3 100644 --- a/src/usr/runtime/test/runtimeattrstest.H +++ b/src/usr/runtime/test/runtimeattrstest.H @@ -82,11 +82,11 @@ class RuntimeAttrsTest: public CxxTest::TestSuite //Grab a couple of arbitrary attributes ReturnCode l_rc; - fapi::ATTR_FREQ_PB_Type freq = 0; - l_rc = FAPI_ATTR_GET(ATTR_FREQ_PB,NULL,freq); + fapi::ATTR_FREQ_PB_MHZ_Type freq = 0; + l_rc = FAPI_ATTR_GET(ATTR_FREQ_PB_MHZ,NULL,freq); if( l_rc ) { - TS_FAIL("Error getting fapi::ATTR_FREQ_PB"); + TS_FAIL("Error getting fapi::ATTR_FREQ_PB_MHZ"); } bool freq_found = false; @@ -102,24 +102,24 @@ class RuntimeAttrsTest: public CxxTest::TestSuite uint64_t attr = 0; while( headers[attr].id != hsvc_attr_header_t::NO_ATTRIBUTE ) { - if( headers[attr].id == fapi::ATTR_FREQ_PB ) + if( headers[attr].id == fapi::ATTR_FREQ_PB_MHZ ) { freq_found = true; if( headers[attr].sizeBytes != - sizeof(fapi::ATTR_FREQ_PB_Type) ) + sizeof(fapi::ATTR_FREQ_PB_MHZ_Type) ) { TRACFCOMP( g_trac_runtime, "size=%.16X", headers[attr].sizeBytes ); - TS_FAIL("Size of fapi::ATTR_FREQ_PB data is wrong"); + TS_FAIL("Size of fapi::ATTR_FREQ_PB_MHZ data is wrong"); } else { - fapi::ATTR_FREQ_PB_Type* freq_act = - reinterpret_cast + fapi::ATTR_FREQ_PB_MHZ_Type* freq_act = + reinterpret_cast (beginning+headers[attr].offset); if( *freq_act != freq ) { TRACFCOMP( g_trac_runtime, "Expected=%X, Actual=%X", freq, *freq_act ); - TS_FAIL("fapi::ATTR_FREQ_PB data is wrong"); + TS_FAIL("fapi::ATTR_FREQ_PB_MHZ data is wrong"); } } } @@ -159,7 +159,7 @@ class RuntimeAttrsTest: public CxxTest::TestSuite if( !freq_found ) { - TS_FAIL("Never found FREQ_PB in system attributes"); + TS_FAIL("Never found FREQ_PB_MHZ in system attributes"); } if( !vpdMinLevel_found ) { -- cgit v1.2.3