Holder test thread safe for all (#2425)
This commit is contained in:
parent
03d184726a
commit
863a7bd663
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user