From 198aa675cca656bb5904c96e943a52648904a2ab Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 15 Sep 2023 16:58:44 +0200 Subject: [PATCH] LV 2.0: add "not existing source path" test which uses K2 --- compiler/testData/cli/jvm/nonExistingSourcePathK2.args | 4 ++++ compiler/testData/cli/jvm/nonExistingSourcePathK2.out | 2 ++ .../tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 compiler/testData/cli/jvm/nonExistingSourcePathK2.args create mode 100644 compiler/testData/cli/jvm/nonExistingSourcePathK2.out diff --git a/compiler/testData/cli/jvm/nonExistingSourcePathK2.args b/compiler/testData/cli/jvm/nonExistingSourcePathK2.args new file mode 100644 index 00000000000..f9b9bf8c313 --- /dev/null +++ b/compiler/testData/cli/jvm/nonExistingSourcePathK2.args @@ -0,0 +1,4 @@ +not/existing/path +-d +$TEMP_DIR$ + diff --git a/compiler/testData/cli/jvm/nonExistingSourcePathK2.out b/compiler/testData/cli/jvm/nonExistingSourcePathK2.out new file mode 100644 index 00000000000..9d0049b1964 --- /dev/null +++ b/compiler/testData/cli/jvm/nonExistingSourcePathK2.out @@ -0,0 +1,2 @@ +error: source file or directory not found: not/existing/path +COMPILATION_ERROR diff --git a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java index e886389195b..e7c9f9934d7 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java @@ -1010,6 +1010,11 @@ public class CliTestGenerated extends AbstractCliTest { runTest("compiler/testData/cli/jvm/nonExistingSourcePath.args"); } + @TestMetadata("nonExistingSourcePathK2.args") + public void testNonExistingSourcePathK2() throws Exception { + runTest("compiler/testData/cli/jvm/nonExistingSourcePathK2.args"); + } + @TestMetadata("nonLocalDisabled.args") public void testNonLocalDisabled() throws Exception { runTest("compiler/testData/cli/jvm/nonLocalDisabled.args");