diff --git a/build-tools/build.xml b/build-tools/build.xml
index b3458ea1767..50d59149b9c 100644
--- a/build-tools/build.xml
+++ b/build-tools/build.xml
@@ -61,6 +61,7 @@
+
@@ -309,7 +310,7 @@
-
+
Running JUnit: classpath = "@{classpath}" (Jar)
@@ -434,6 +435,24 @@
+
+
+
+
+
+
+
+
+
+ "ERROR:" was expected here
+
+
+
+
+
+
+
+
diff --git a/build-tools/test/compilation-fail/Smoke.kts b/build-tools/test/compilation-fail/Smoke.kts
new file mode 100644
index 00000000000..fdef116a2a5
--- /dev/null
+++ b/build-tools/test/compilation-fail/Smoke.kts
@@ -0,0 +1,3 @@
+import kotlin.modules.*
+
+fun proj
\ No newline at end of file