diff options
Diffstat (limited to 'src/usr/i2c/test/eepromddtest.H')
| -rwxr-xr-x | src/usr/i2c/test/eepromddtest.H | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/usr/i2c/test/eepromddtest.H b/src/usr/i2c/test/eepromddtest.H index 5f31a128b..1be82c462 100755 --- a/src/usr/i2c/test/eepromddtest.H +++ b/src/usr/i2c/test/eepromddtest.H @@ -37,6 +37,7 @@ #include <i2c/eepromddreasoncodes.H> #include <targeting/predicates/predicatectm.H> #include <targeting/predicates/predicatepostfixexpr.H> +#include <targeting/util.H> extern trace_desc_t* g_trac_eeprom; @@ -83,13 +84,7 @@ class EEPROMTest: public CxxTest::TestSuite //@VBU workaround - Disable I2C test case on fake target //Test case use fake targets, which will fail when running //on VBU. Need to fix this. - TARGETING::EntityPath syspath(TARGETING::EntityPath::PATH_PHYSICAL); - syspath.addLast(TARGETING::TYPE_SYS,0); - TARGETING::Target* sys = TARGETING::targetService().toTarget(syspath); - uint8_t vpo_mode = 0; - if( sys - && sys->tryGetAttr<TARGETING::ATTR_IS_SIMULATION>(vpo_mode) - && (vpo_mode == 1) ) + if( TARGETING::is_vpo() ) { return; } |

