Proposal test uses special run() method to check exception throwing (#4062)

* proposal test uses special run() method to check exception throwing

* validate() removed from run()
This commit is contained in:
Yury Gaydaychuk 2021-01-28 21:16:13 +03:00 committed by GitHub
parent 08c4ac5372
commit b0f5a339e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public:
protected:
void SetUp() override;
void Validate() override {};
void Run() override;
const LayerTestsDefinitions::normalize_type normalize = true;
const LayerTestsDefinitions::feat_stride_type feat_stride = 1;

View File

@ -93,6 +93,11 @@ void ProposalBehTest::SetUp() {
function = std::make_shared<ngraph::Function>(results, params, "proposal");
}
void ProposalBehTest::Run() {
LoadNetwork();
Infer();
}
TEST_P(ProposalBehTest, CompareWithRefs) {
ASSERT_THROW(Run(), InferenceEngine::details::InferenceEngineException);
}