Holder test thread safe for all (#2425)

This commit is contained in:
Anton Pankratv 2020-09-25 21:12:24 +03:00 committed by GitHub
parent 03d184726a
commit 863a7bd663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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();