diff options
Diffstat (limited to 'src/usr/i2c/test/i2ctest.H')
-rwxr-xr-x | src/usr/i2c/test/i2ctest.H | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/usr/i2c/test/i2ctest.H b/src/usr/i2c/test/i2ctest.H index e1933ac62..95f1cc16d 100755 --- a/src/usr/i2c/test/i2ctest.H +++ b/src/usr/i2c/test/i2ctest.H @@ -219,6 +219,22 @@ class I2CTest: public CxxTest::TestSuite // Check to see if I2C function is there if( !isI2CAvailable( theTarget ) ) { + TRACFCOMP( g_trac_i2c, + "testI2ReadWrite Operation - no i2c function" ); + + + continue; + } + + // check to see if the target is functional before we + // continue.. + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_i2c, + "testI2ReadWrite Operation - target not functional" ); + continue; } @@ -332,6 +348,22 @@ class I2CTest: public CxxTest::TestSuite // Check to see if I2C function is there if( !isI2CAvailable( testTarget ) ) { + TRACFCOMP( g_trac_i2c, + "testI2CInvalid Operation - no i2c function" ); + + + continue; + } + + // check to see if the target is functional before we + // continue.. + if + (!testTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + TRACFCOMP( g_trac_i2c, + "testI2CInvalide Operation - not functional" ); + + continue; } |