Enable r8 kotlinx coroutines test

Bug: 157023682
Change-Id: I4effa00735c2b9da4ab544809d12f6c72efbf27c
diff --git a/src/test/java/com/android/tools/r8/kotlin/coroutines/KotlinxCoroutinesTestRunner.java b/src/test/java/com/android/tools/r8/kotlin/coroutines/KotlinxCoroutinesTestRunner.java
index 904f69f..ba63861 100644
--- a/src/test/java/com/android/tools/r8/kotlin/coroutines/KotlinxCoroutinesTestRunner.java
+++ b/src/test/java/com/android/tools/r8/kotlin/coroutines/KotlinxCoroutinesTestRunner.java
@@ -6,7 +6,9 @@
 
 import static com.android.tools.r8.KotlinCompilerTool.KOTLINC;
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertThrows;
 
+import com.android.tools.r8.CompilationFailedException;
 import com.android.tools.r8.KotlinTestBase;
 import com.android.tools.r8.TestParameters;
 import com.android.tools.r8.ToolHelper;
@@ -76,6 +78,27 @@
     runTestsInJar(baseJar, BASE_LIBRARY);
   }
 
+  @Test
+  public void runKotlinxCoroutinesNewTests_r8() {
+    // TODO(b/157023682): This should be able to compile.
+    assertThrows(
+        CompilationFailedException.class,
+        () -> {
+          testForR8(parameters.getBackend())
+              .addProgramFiles(BASE_LIBRARY)
+              .addKeepAllClassesRule()
+              .addKeepAllAttributes()
+              // The BASE_LIBRARY contains proguard rules that do not match.
+              .allowUnusedProguardConfigurationRules()
+              .allowDiagnosticInfoMessages()
+              .addKeepRules(
+                  "-dontwarn reactor.blockhound.integration.BlockHoundIntegration",
+                  "-dontwarn org.junit.runners.model.Statement",
+                  "-dontwarn org.junit.rules.TestRule")
+              .compile();
+        });
+  }
+
   private void runTestsInJar(Path testJar, Path deps) throws Exception {
     List<Path> dependencies = new ArrayList<>(DEPENDENCIES);
     dependencies.add(deps);