Minor: report error instead of crash with exceptions when collect JetFiles to compile and remove obsolete (wrong now) code

#EA-61681 Obsolete
This commit is contained in:
Zalim Bashorov
2015-09-10 22:32:24 +03:00
parent 909cbc6817
commit 1b00eb3a17
9 changed files with 43 additions and 8 deletions
@@ -53,6 +53,16 @@ public class CliCommonTest extends CliBaseTest {
executeCompilerCompareOutputJVM();
}
@Test
public void nonexistentPathInModule() throws Exception {
executeCompilerCompareOutputJVM();
}
@Test
public void nonexistentScript() throws Exception {
executeCompilerCompareOutputJVM();
}
@Test
public void diagnosticsOrder() throws Exception {
executeCompilerCompareOutputJVM();
@@ -169,6 +169,18 @@ public class KotlincExecutableTestGenerated extends AbstractKotlincExecutableTes
doJvmTest(fileName);
}
@TestMetadata("nonexistentPathInModule.args")
public void testNonexistentPathInModule() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/jvm/nonexistentPathInModule.args");
doJvmTest(fileName);
}
@TestMetadata("nonexistentScript.args")
public void testNonexistentScript() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/jvm/nonexistentScript.args");
doJvmTest(fileName);
}
@TestMetadata("pluginSimple.args")
public void testPluginSimple() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/jvm/pluginSimple.args");