Fix two stage tests: don't try to run on empty input
This commit is contained in:
committed by
Pavel Punegov
parent
edf13fdfa9
commit
ef3baa3f2a
@@ -491,8 +491,10 @@ fun runTest() {
|
|||||||
def files = compileList.stream()
|
def files = compileList.stream()
|
||||||
.map { it.path }
|
.map { it.path }
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList())
|
||||||
runCompiler(files, klibPath, flags + ["-p", "library"])
|
if (!files.empty) {
|
||||||
runCompiler([], executablePath(), flags + ["-Xinclude=$klibPath"])
|
runCompiler(files, klibPath, flags + ["-p", "library"])
|
||||||
|
runCompiler([], executablePath(), flags + ["-Xinclude=$klibPath"])
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Regular compilation with modules.
|
// Regular compilation with modules.
|
||||||
Map<String, TestModule> modules = compileList.stream()
|
Map<String, TestModule> modules = compileList.stream()
|
||||||
|
|||||||
Reference in New Issue
Block a user