From d2668b5b9da718d023736e7b109990e69a41d281 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Tue, 8 Jan 2019 12:27:35 -0800 Subject: [PATCH] Report "SKIPPED" for unsupported tests. - Instead of reporting PASS for unsupported tests, use GTEST_SKIP to skip the tests at runtime. Bug: 113356629 Test: mm Test: VTS tests on HVX driver Change-Id: I6a870b61809e58490e66dd4ea36ddeb64fc68a07 Merged-In: I6a870b61809e58490e66dd4ea36ddeb64fc68a07 (cherry picked from commit bb685a4a974ba95fd7ed7d8ff9d754b5c7100ac1) --- neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp b/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp index 1c5a6e8de7..db10f6d5a2 100644 --- a/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp +++ b/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp @@ -373,7 +373,7 @@ void Execute(const sp& device, std::function c std::cout << "[ ] Early termination of test because vendor service cannot " "prepare model that it does not support." << std::endl; - return; + GTEST_SKIP(); } EXPECT_EQ(ErrorStatus::NONE, prepareReturnStatus); ASSERT_NE(nullptr, preparedModel.get()); @@ -421,7 +421,7 @@ void Execute(const sp& device, std::function c std::cout << "[ ] Early termination of test because vendor service cannot " "prepare model that it does not support." << std::endl; - return; + GTEST_SKIP(); } EXPECT_EQ(ErrorStatus::NONE, prepareReturnStatus); ASSERT_NE(nullptr, preparedModel.get()); @@ -470,7 +470,7 @@ void Execute(const sp& device, std::function c std::cout << "[ ] Early termination of test because vendor service cannot " "prepare model that it does not support." << std::endl; - return; + GTEST_SKIP(); } EXPECT_EQ(ErrorStatus::NONE, prepareReturnStatus); ASSERT_NE(nullptr, preparedModel.get());