|
From: Markus B. <mba...@us...> - 2006-01-17 20:53:24
|
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-serv1364/src/org/rubypeople/rdt/debug/core/tests Modified Files: FTC_DebuggerLaunch.java Log Message: adding some infos to find the reason of failing on the nightly build 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.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FTC_DebuggerLaunch.java 5 Jan 2006 16:11:39 -0000 1.5 --- FTC_DebuggerLaunch.java 17 Jan 2006 20:53:15 -0000 1.6 *************** *** 32,38 **** protected void createInterpreter() { ! // FIXME We rely on the RUBY_INTERPRETER to be a full path to a valid ruby executable, and it's not getting set properly so this test ends up failing (on the nightly build)! ! ! RubyInterpreter rubyInterpreter = new RubyInterpreter("RubyInterpreter", new Path(FTC_DebuggerCommunicationTest.RUBY_INTERPRETER)); RubyRuntime.getDefault().addInstalledInterpreter(rubyInterpreter) ; --- 32,40 ---- protected void createInterpreter() { ! // We rely on the RUBY_INTERPRETER to be a full path to a valid ruby executable, therefore the property rdt.rubyInterpreter has ! // to be set accordingly ! String rubyInterpreterPath = FTC_DebuggerCommunicationTest.RUBY_INTERPRETER ; ! System.out.println("Using interpreter: " + rubyInterpreterPath) ; ! RubyInterpreter rubyInterpreter = new RubyInterpreter("RubyInterpreter", new Path(rubyInterpreterPath)); RubyRuntime.getDefault().addInstalledInterpreter(rubyInterpreter) ; *************** *** 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 --- 81,88 ---- // getDebugTarget returns null if connection between ruby debugger and RubyDebuggerProxy (RubyLoop) could not // be established ! assertNotNull("1. debug target not null", launch.getDebugTarget()) ; ! assertNotNull("1. debug target has threads", launch.getDebugTarget().getThreads()); ! assertTrue("1. debug target has at least one thread", launch.getDebugTarget().getThreads().length > 0); ! assertTrue("1. debug target's first thread is suspended ", launch.getDebugTarget().getThreads()[0].isSuspended()) ; // the breakpoint we have set for the first launch has disappeard at this point through *************** *** 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()) ; } } --- 92,100 ---- Thread.sleep(5000) ; this.log("2. launch", secondlaunch) ; ! assertNotNull("2. debug target not null", secondlaunch.getDebugTarget()) ; ! assertNotNull("2. debug target has threads", secondlaunch.getDebugTarget().getThreads()); ! assertTrue("2. debug target has at least one thread", secondlaunch.getDebugTarget().getThreads().length > 0); ! assertFalse("2. debug target's first prozess is not terminated", secondlaunch.getProcesses()[0].isTerminated()) ; ! assertTrue("2. debug target's first thread is suspended ", secondlaunch.getDebugTarget().getThreads()[0].isSuspended()) ; } } |