119120121122123124125126127128129
timer.schedule( new TimerTask() { public void run() { setStopReason( "Test stopped because the time limit expired."); result.stop(); } }, 1000L * (long)getTimeLimit()); }
140141142143144145146147148149150
{ suite.run(result); if (!result.wasSuccessful()) { setStopReason( "Test stopped due to errors."); result.stop(); } if (result.shouldStop()) { break; } }