mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cucumber tests: invoke System.exit even if exception is thrown to avoid hanging
This commit is contained in:
@@ -38,7 +38,13 @@ public class CucumberMain {
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
int exitStatus = run(args, Thread.currentThread().getContextClassLoader());
|
||||
int exitStatus;
|
||||
try {
|
||||
exitStatus = run(args, Thread.currentThread().getContextClassLoader());
|
||||
}
|
||||
catch (Throwable e) {
|
||||
exitStatus = 1;
|
||||
}
|
||||
System.exit(exitStatus);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user