Fix two stage tests: don't try to run on empty input

This commit is contained in:
Pavel Punegov
2020-06-03 12:52:32 +03:00
committed by Pavel Punegov
parent edf13fdfa9
commit ef3baa3f2a
@@ -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<String, TestModule> modules = compileList.stream()