From da3be1f04b82176af428b0d5a97f13aed4fbdef3 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Tue, 18 Jul 2017 12:27:31 +0700 Subject: [PATCH] gradle-plugin: Correct some incremental tests --- .../kotlin/gradle/plugin/test/IncrementalSpecification.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/IncrementalSpecification.groovy b/tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/IncrementalSpecification.groovy index a4bb21b028a..21a10b84e02 100644 --- a/tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/IncrementalSpecification.groovy +++ b/tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/IncrementalSpecification.groovy @@ -124,7 +124,7 @@ class IncrementalSpecification extends Specification { it.generateSrcFile('main.kt') it.newFolder('src', 'foo', 'kotlin') it.generateSrcFile('src/foo/kotlin/', 'bar.kt', """ - fun bar() { println("Hello!") } + fun main(args: Array) { println("Hello!") } """.stripIndent()) } def results = buildTwice(project) { KonanInteropProject it -> @@ -257,11 +257,13 @@ class IncrementalSpecification extends Specification { def project = KonanInteropProject.createEmpty(tmpFolder) { KonanInteropProject it -> it.generateSrcFile('main.kt') it.newFolder('src', 'lib', 'kotlin') + it.generateSrcFile('src/lib/kotlin', 'lib.kt', 'fun foo() { println(42) }') it.buildFile.append(""" konanArtifacts { lib { inputFiles fileTree('src/lib/kotlin') produce 'bitcode' + noMain() } } """.stripIndent())