Suppress gtest error for tests without any instance am: 7f40613792
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1441023 Change-Id: Ic6ea56f047cac78ae0ee56a29b54f17da411952a
This commit is contained in:
commit
d55adae254
3 changed files with 7 additions and 0 deletions
|
@ -1209,6 +1209,7 @@ std::string printCompilationCachingTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompilationCachingTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingTest,
|
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices),
|
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices),
|
||||||
printCompilationCachingTest);
|
printCompilationCachingTest);
|
||||||
|
@ -1365,6 +1366,7 @@ std::string printCompilationCachingSecurityTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + std::to_string(seed));
|
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + std::to_string(seed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompilationCachingSecurityTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingSecurityTest,
|
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingSecurityTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices,
|
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices,
|
||||||
testing::Range(0U, 10U)),
|
testing::Range(0U, 10U)),
|
||||||
|
|
|
@ -1200,6 +1200,7 @@ std::string printCompilationCachingTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompilationCachingTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingTest,
|
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices),
|
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices),
|
||||||
printCompilationCachingTest);
|
printCompilationCachingTest);
|
||||||
|
@ -1356,6 +1357,7 @@ std::string printCompilationCachingSecurityTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + std::to_string(seed));
|
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + std::to_string(seed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CompilationCachingSecurityTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingSecurityTest,
|
INSTANTIATE_TEST_SUITE_P(TestCompilationCaching, CompilationCachingSecurityTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices,
|
testing::Combine(kNamedDeviceChoices, kOperandTypeChoices,
|
||||||
testing::Range(0U, 10U)),
|
testing::Range(0U, 10U)),
|
||||||
|
|
|
@ -605,6 +605,7 @@ std::string printMemoryDomainAllocateTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MemoryDomainAllocateTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainAllocateTest,
|
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainAllocateTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices),
|
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices),
|
||||||
printMemoryDomainAllocateTest);
|
printMemoryDomainAllocateTest);
|
||||||
|
@ -829,6 +830,7 @@ std::string printMemoryDomainCopyTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
return gtestCompliantName(getName(namedDevice) + "_" + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MemoryDomainCopyTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainCopyTest,
|
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainCopyTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices),
|
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices),
|
||||||
printMemoryDomainCopyTest);
|
printMemoryDomainCopyTest);
|
||||||
|
@ -1195,6 +1197,7 @@ std::string printMemoryDomainExecutionTest(
|
||||||
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + executorStr);
|
return gtestCompliantName(getName(namedDevice) + "_" + type + "_" + executorStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MemoryDomainExecutionTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainExecutionTest,
|
INSTANTIATE_TEST_SUITE_P(TestMemoryDomain, MemoryDomainExecutionTest,
|
||||||
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices,
|
testing::Combine(kNamedDeviceChoices, kTestOperandTypeChoices,
|
||||||
kExecutorChoices),
|
kExecutorChoices),
|
||||||
|
|
Loading…
Reference in a new issue