From e58b8229beaf7e0e76241778bd1bf38183922e3d Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 2 Jan 2015 18:38:19 +0300 Subject: [PATCH] Assert kotlin-runtime.jar is present in tests --- .../jet/codegen/forTestCompile/ForTestCompileRuntime.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java index e0369563d0b..295d239cd6e 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java +++ b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java @@ -23,6 +23,10 @@ import java.io.File; public class ForTestCompileRuntime { @NotNull public static File runtimeJarForTests() { - return new File("dist/kotlinc/lib/kotlin-runtime.jar"); + File runtime = new File("dist/kotlinc/lib/kotlin-runtime.jar"); + if (!runtime.exists()) { + throw new IllegalStateException("kotlin-runtime.jar in dist/kotlinc/lib does not exist. Run 'ant dist'"); + } + return runtime; } }