[Metadata] Update expectation after update to kotlin-dev compiler
Change-Id: I277936eb43cb63a3e93ba953aa230f76099c7a3f
diff --git a/src/test/java/com/android/tools/r8/kotlin/metadata/MetadataRewriteDelegatedPropertyTest.java b/src/test/java/com/android/tools/r8/kotlin/metadata/MetadataRewriteDelegatedPropertyTest.java
index 44a9963..8cfa77f 100644
--- a/src/test/java/com/android/tools/r8/kotlin/metadata/MetadataRewriteDelegatedPropertyTest.java
+++ b/src/test/java/com/android/tools/r8/kotlin/metadata/MetadataRewriteDelegatedPropertyTest.java
@@ -122,30 +122,20 @@
.addProgramFiles(libJars.getForConfiguration(kotlinc, targetVersion))
.compile()
.writeToZip();
- Path outputPath = temp.newFolder().toPath();
ProcessResult compileResult =
kotlinc(parameters.getRuntime().asCf(), kotlinc, targetVersion)
.addClasspathFiles(outputJar)
.addSourceFiles(
getKotlinFileInTest(DescriptorUtils.getBinaryNameFromJavaType(PKG_APP), "main"))
- .setOutputPath(outputPath)
+ .setOutputPath(temp.newFolder().toPath())
.compileRaw();
- if (kotlinParameters.isNewerThan(KOTLINC_1_8_0)) {
- testForJvm(parameters)
- .addRunClasspathFiles(
- kotlinc.getKotlinStdlibJar(), kotlinc.getKotlinReflectJar(), outputJar)
- .addClasspath(outputPath)
- .run(parameters.getRuntime(), PKG_APP + ".MainKt")
- .assertSuccessWithOutputLines(
- "foobar", "property oldName (Kotlin reflection is not available)");
- } else {
- Assert.assertEquals(1, compileResult.exitCode);
- assertThat(
- compileResult.stderr,
- containsString(
- "unsupported [reference to the synthetic extension property for a Java get/set"
- + " method]"));
- }
+ Assert.assertEquals(1, compileResult.exitCode);
+ assertThat(
+ compileResult.stderr,
+ containsString(
+ kotlinParameters.isNewerThan(KOTLINC_1_8_0)
+ ? "references to synthetic java properties"
+ : "reference to the synthetic extension property"));
}
private void inspectMetadata(CodeInspector inspector) {