Report a readable diagnostic on empty -J argument in CLI
This commit is contained in:
committed by
Alexander Udalov
parent
81a495b494
commit
9a7ef11043
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user