From ef3baa3f2a7f6e3ba30eb2e608f65e46f1940fd6 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Wed, 3 Jun 2020 12:52:32 +0300 Subject: [PATCH] Fix two stage tests: don't try to run on empty input --- .../src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index 158b9520538..3dd05197131 100644 --- a/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/build-tools/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -491,8 +491,10 @@ fun runTest() { def files = compileList.stream() .map { it.path } .collect(Collectors.toList()) - runCompiler(files, klibPath, flags + ["-p", "library"]) - runCompiler([], executablePath(), flags + ["-Xinclude=$klibPath"]) + if (!files.empty) { + runCompiler(files, klibPath, flags + ["-p", "library"]) + runCompiler([], executablePath(), flags + ["-Xinclude=$klibPath"]) + } } else { // Regular compilation with modules. Map modules = compileList.stream()