Report a readable diagnostic on empty -J argument in CLI

This commit is contained in:
scaventz
2021-02-22 11:16:03 +08:00
committed by Alexander Udalov
parent 81a495b494
commit 9a7ef11043
3 changed files with 22 additions and 2 deletions
@@ -349,4 +349,14 @@ fun f() : Result<Int> = Result.success(42)
expectedStdout = "[OK]\n", environment = jdk15,
)
}
fun testEmptyJArgument() {
runProcess(
"kotlinc",
"$testDataDirectory/helloWorld.kt",
"-d", tmpdir.path,
"-J", expectedStdout = "error: empty -J argument\n",
expectedExitCode = 1
)
}
}