test/java/beans/XMLDecoder/8028054/TestMethodFinder.java

Print this page

        

@@ -71,12 +71,11 @@
             if (alive == 0) {
                 break;
             }
             Task.print(working + " out of " + alive + " threads are working");
             if ((working == 0) && (++alarm == 10)) {
-                Task.print("DEADLOCK DETECTED");
-                System.exit(100);
+                throw new RuntimeException("FAIL - DEADLOCK DETECTED");
             }
             Thread.sleep(1000);
         }
     }
 }