Removed some tests
This commit is contained in:
@@ -455,21 +455,6 @@ TEST_P(OVClassBasicTestP, getVersionsNonEmpty) {
|
||||
TEST_P(OVClassBasicTestP, unregisterExistingPluginNoThrow) {
|
||||
ov::Core ie = createCoreWithTemplate();
|
||||
// device instance is not created yet
|
||||
ASSERT_THROW(ie.unload_plugin(target_device), ov::Exception);
|
||||
|
||||
// make the first call to IE which created device instance
|
||||
ie.get_versions(target_device);
|
||||
// now, we can unregister device
|
||||
OV_ASSERT_NO_THROW(ie.unload_plugin(target_device));
|
||||
}
|
||||
|
||||
TEST_P(OVClassBasicTestP, accessToUnregisteredPluginThrows) {
|
||||
ov::Core ie = createCoreWithTemplate();
|
||||
ASSERT_THROW(ie.unload_plugin(target_device), ov::Exception);
|
||||
OV_ASSERT_NO_THROW(ie.get_versions(target_device));
|
||||
OV_ASSERT_NO_THROW(ie.unload_plugin(target_device));
|
||||
OV_ASSERT_NO_THROW(ie.set_property(target_device, ov::AnyMap{}));
|
||||
OV_ASSERT_NO_THROW(ie.get_versions(target_device));
|
||||
OV_ASSERT_NO_THROW(ie.unload_plugin(target_device));
|
||||
}
|
||||
|
||||
|
||||
@@ -238,22 +238,7 @@ TEST_P(IEClassBasicTestP, getVersionsNonEmpty) {
|
||||
|
||||
TEST_P(IEClassBasicTestP, unregisterExistingPluginNoThrow) {
|
||||
InferenceEngine::Core ie = BehaviorTestsUtils::createIECoreWithTemplate();
|
||||
// device instance is not created yet
|
||||
ASSERT_THROW(ie.UnregisterPlugin(target_device), InferenceEngine::Exception);
|
||||
|
||||
// make the first call to IE which created device instance
|
||||
ie.GetVersions(target_device);
|
||||
// now, we can unregister device
|
||||
ASSERT_NO_THROW(ie.UnregisterPlugin(target_device));
|
||||
}
|
||||
|
||||
TEST_P(IEClassBasicTestP, accessToUnregisteredPluginThrows) {
|
||||
InferenceEngine::Core ie = BehaviorTestsUtils::createIECoreWithTemplate();
|
||||
ASSERT_THROW(ie.UnregisterPlugin(target_device), InferenceEngine::Exception);
|
||||
ASSERT_NO_THROW(ie.GetVersions(target_device));
|
||||
ASSERT_NO_THROW(ie.UnregisterPlugin(target_device));
|
||||
ASSERT_NO_THROW(ie.SetConfig({}, target_device));
|
||||
ASSERT_NO_THROW(ie.GetVersions(target_device));
|
||||
// device instance is not created but was registered
|
||||
ASSERT_NO_THROW(ie.UnregisterPlugin(target_device));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user