Exclude desugared libary tests from new gradle setup
Bug: b/291198792
Change-Id: Iba99a1072dbe2db588aa4aad6164e8f179c416cb
diff --git a/d8_r8/test_modules/tests_java_8/build.gradle.kts b/d8_r8/test_modules/tests_java_8/build.gradle.kts
index 4d75106..a06f6a9 100644
--- a/d8_r8/test_modules/tests_java_8/build.gradle.kts
+++ b/d8_r8/test_modules/tests_java_8/build.gradle.kts
@@ -171,6 +171,20 @@
// This path is set when compiling examples jar task in DependenciesPlugin.
environment.put("EXAMPLES_JAVA_11_JAVAC_BUILD_DIR",
getRoot().resolveAll("build", "test", "examplesJava11", "classes"))
+ // TODO(b/291198792): Remove this exclusion when desugared library runs correctly.
+ exclude("com/android/tools/r8/desugar/desugaredlibrary/**")
+ exclude("com/android/tools/r8/desugar/InvokeSuperToRewrittenDefaultMethodTest**")
+ exclude("com/android/tools/r8/desugar/InvokeSuperToEmulatedDefaultMethodTest**")
+ exclude("com/android/tools/r8/desugar/backports/ThreadLocalBackportWithDesugaredLibraryTest**")
+ exclude("com/android/tools/r8/L8CommandTest**")
+ exclude("com/android/tools/r8/MarkersTest**")
+ exclude("com/android/tools/r8/apimodel/ApiModelDesugaredLibraryReferenceTest**")
+ exclude("com/android/tools/r8/apimodel/ApiModelNoDesugaredLibraryReferenceTest**")
+ exclude("com/android/tools/r8/benchmarks/desugaredlib/**")
+ exclude("com/android/tools/r8/classmerging/vertical/ForceInlineConstructorWithRetargetedLibMemberTest**")
+ exclude("com/android/tools/r8/classmerging/vertical/ForceInlineConstructorWithRetargetedLibMemberTest**")
+ exclude("com/android/tools/r8/ir/optimize/inliner/InlineMethodWithRetargetedLibMemberTest**")
+ exclude("com/android/tools/r8/profile/art/DesugaredLibraryArtProfileRewritingTest**")
}
val testJar by registering(Jar::class) {