Holder test thread safe for all (#2425)
authorAnton Pankratv <anton.pankratov@intel.com>
Fri, 25 Sep 2020 18:12:24 +0000 (21:12 +0300)
committerGitHub <noreply@github.com>
Fri, 25 Sep 2020 18:12:24 +0000 (21:12 +0300)
inference-engine/tests/functional/plugin/shared/src/behavior/cpp_holders.cpp

index 116e55d..61f9eb2 100644 (file)
@@ -22,11 +22,7 @@ namespace BehaviorTestsDefinitions {
     void HoldersTest::SetUp() {
         std::tie(targetDevice, order) = this->GetParam();
         deathTestStyle = ::testing::GTEST_FLAG(death_test_style);
-        if ((deathTestStyle == "fast" && targetDevice == CommonTestUtils::DEVICE_MYRIAD) ||
-            targetDevice == CommonTestUtils::DEVICE_GPU) {
-            // Default death test mode "fast" must be used in single-threaded context only.
-            // "MyriadBehaviorTests" links "XLink" library that statically initializes "libusb".
-            // Which in turn creates a thread.
+        if (deathTestStyle == "fast") {
             ::testing::GTEST_FLAG(death_test_style) = "threadsafe";
         }
         function = ngraph::builder::subgraph::makeConvPoolRelu();