Removed some tests

This commit is contained in:
Ilya Churaev
2023-05-30 13:36:52 +04:00
parent 6b1674e2b3
commit 090398652f
2 changed files with 1 additions and 31 deletions

View File

@@ -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));
}

View File

@@ -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));
}