collect tests: catch exceptions to prevent vm hanging
authoranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 15:51:54 +0000 (16:51 +0100)
committeranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 16:47:54 +0000 (17:47 +0100)
plugins/junit/src/com/intellij/execution/junit/TestPackage.java
plugins/testng/src/com/theoryinpractice/testng/configuration/SearchingForTestsTask.java

index 3c75043754eb040169ed5e6246f99a57029ca4f9..b71752c8177e1cdb34fea95e99920a0c9c076ad1 100644 (file)
@@ -345,6 +345,9 @@ public class TestPackage extends TestObject {
       catch (IOException e) {
         LOG.info(e);
       }
+      catch (Throwable e) {
+        LOG.error(e);
+      }
     }
 
     @Override
index a4869e91ec199264da46cacef1e6606b839488c9..5f85cf25d57cedb23af0ab9f3ed8df372eddbd9b 100644 (file)
@@ -96,6 +96,9 @@ public class SearchingForTestsTask extends Task.Backgroundable {
     catch (IOException e) {
       LOG.info(e);
     }
+    catch (Throwable e) {
+      LOG.error(e);
+    }
   }
 
   @Override