|
From: Christopher W. <caw...@us...> - 2006-01-05 16:11:48
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core.tests/src/org/rubypeople/rdt/debug/core/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21266/src/org/rubypeople/rdt/debug/core/tests Modified Files: FTC_DebuggerLaunch.java Log Message: try to fix broken test (or at least have it fail on other assertions that may make more sense) Index: FTC_DebuggerLaunch.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core.tests/src/org/rubypeople/rdt/debug/core/tests/FTC_DebuggerLaunch.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FTC_DebuggerLaunch.java 20 Dec 2005 22:36:50 -0000 1.4 --- FTC_DebuggerLaunch.java 5 Jan 2006 16:11:39 -0000 1.5 *************** *** 3,7 **** import java.io.ByteArrayInputStream; - import junit.framework.Assert; import junit.framework.TestCase; --- 3,6 ---- *************** *** 80,85 **** // getDebugTarget returns null if connection between ruby debugger and RubyDebuggerProxy (RubyLoop) could not // be established ! Assert.assertNotNull(launch.getDebugTarget()) ; ! Assert.assertTrue(launch.getDebugTarget().getThreads()[0].isSuspended()) ; // the breakpoint we have set for the first launch has disappeard at this point through --- 79,86 ---- // getDebugTarget returns null if connection between ruby debugger and RubyDebuggerProxy (RubyLoop) could not // be established ! assertNotNull(launch.getDebugTarget()) ; ! assertNotNull(launch.getDebugTarget().getThreads()); ! assertTrue(launch.getDebugTarget().getThreads().length > 0); ! assertTrue(launch.getDebugTarget().getThreads()[0].isSuspended()) ; // the breakpoint we have set for the first launch has disappeard at this point through *************** *** 89,95 **** Thread.sleep(5000) ; this.log("2. launch", secondlaunch) ; ! Assert.assertNotNull(secondlaunch.getDebugTarget()) ; ! Assert.assertFalse(secondlaunch.getProcesses()[0].isTerminated()) ; ! Assert.assertTrue(secondlaunch.getDebugTarget().getThreads()[0].isSuspended()) ; } } --- 90,98 ---- Thread.sleep(5000) ; this.log("2. launch", secondlaunch) ; ! assertNotNull(secondlaunch.getDebugTarget()) ; ! assertNotNull(secondlaunch.getDebugTarget().getThreads()); ! assertTrue(secondlaunch.getDebugTarget().getThreads().length > 0); ! assertFalse(secondlaunch.getProcesses()[0].isTerminated()) ; ! assertTrue(secondlaunch.getDebugTarget().getThreads()[0].isSuspended()) ; } } |