Reenable the class_templates test by disabling the specific failing test cases
Since only two cases fail, it is better to disable them specifically, rather than disable the whole test.
PiperOrigin-RevId: 552742253
Change-Id: Id361a5fe2783bfb3db56be93e7049a6dfa727391
diff --git a/lifetime_analysis/test/BUILD b/lifetime_analysis/test/BUILD
index 401e665..96c1883 100644
--- a/lifetime_analysis/test/BUILD
+++ b/lifetime_analysis/test/BUILD
@@ -167,14 +167,9 @@
],
)
-# TODO(b/253992761): fix and re-enable.
cc_test(
name = "class_templates",
srcs = ["class_templates.cc"],
- tags = [
- "manual",
- "notap",
- ],
deps = [
":lifetime_analysis_test",
"@com_google_googletest//:gtest_main",
diff --git a/lifetime_analysis/test/class_templates.cc b/lifetime_analysis/test/class_templates.cc
index 4927f33..c2e2d7e 100644
--- a/lifetime_analysis/test/class_templates.cc
+++ b/lifetime_analysis/test/class_templates.cc
@@ -77,7 +77,8 @@
{"return_u", "(<a, b>, c) -> b"}}));
}
-TEST_F(LifetimeAnalysisTest, StructTwoTemplateArgumentsNestedClasses) {
+// Disabled due to b/253992761.
+TEST_F(LifetimeAnalysisTest, DISABLED_StructTwoTemplateArgumentsNestedClasses) {
EXPECT_THAT(GetLifetimes(R"(
template <typename T>
struct Outer {
@@ -543,7 +544,8 @@
LifetimesContain({{"target", "a, b"}}));
}
-TEST_F(LifetimeAnalysisTest, NoexceptTemplate) {
+// Disabled due to b/253992761.
+TEST_F(LifetimeAnalysisTest, DISABLED_NoexceptTemplate) {
EXPECT_THAT(GetLifetimes(R"(
template <typename T>
struct S {