public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Enable TestFhpdStepping, new testbed and remove stepi/nexti. Fixes bug #4919.
@ 2008-04-18 19:46 mark
  0 siblings, 0 replies; only message in thread
From: mark @ 2008-04-18 19:46 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  44f60a8d0ce962747244b9404a91ec96d9dda975 (commit)
      from  1c65982254c28f61fc7b1fe47a74e93edf876953 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 44f60a8d0ce962747244b9404a91ec96d9dda975
Author: Mark Wielaard <mwielaard@redhat.com>
Date:   Fri Apr 18 21:44:28 2008 +0200

    Enable TestFhpdStepping, new testbed and remove stepi/nexti. Fixes bug #4919.
    
    frysk-core/frysk/hpd/ChangeLog
    2008-04-18  Mark Wielaard  <mwielaard@redhat.com>
    
           * TestFhpdStepping.java: Don't mark unresolved. Adjust to new
           test environment and removal of stepi and nexti commands.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog             |    5 +++
 frysk-core/frysk/hpd/TestFhpdStepping.java |   55 +++++++++-------------------
 2 files changed, 22 insertions(+), 38 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 633e5dc..bfe7075 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,5 +1,10 @@
 2008-04-18  Mark Wielaard  <mwielaard@redhat.com>
 
+	* TestFhpdStepping.java: Don't mark unresolved. Adjust to new
+	test environment and removal of stepi and nexti commands.
+
+2008-04-18  Mark Wielaard  <mwielaard@redhat.com>
+
 	* TestDisplayCommand.java: Don't mark unresolved. Adjust to new
 	actionpoints -> actions command syntax.
 
diff --git a/frysk-core/frysk/hpd/TestFhpdStepping.java b/frysk-core/frysk/hpd/TestFhpdStepping.java
index 9fe1d35..89414df 100644
--- a/frysk-core/frysk/hpd/TestFhpdStepping.java
+++ b/frysk-core/frysk/hpd/TestFhpdStepping.java
@@ -50,28 +50,23 @@ public class TestFhpdStepping extends TestLib {
     
     public void testInstructionStep () {
 	
-	if (unresolved(4914))
-	    return;
-	
 	e = new HpdTestbed();
 	
 	File source = Prefix.sourceFile("frysk-core/frysk/pkglibdir/funit-stepping-asm.S");
 	this.scanner = new TestfileTokenScanner(source);
 	int startLine = this.scanner.findTokenLine("_instructionStep_");
 	
-	e = HpdTestbed.run("funit-stepping-asm");
-	
-	// Remove this - #4919 and #4914.
-	try { Thread.sleep(2000); } catch (Exception e) {}
+	e = HpdTestbed.load("funit-stepping-asm");
+        e.send("start\n");
+        e.expect("starting with this commmand.*" + prompt);
 	
 	e.send("break #" + source + "#" + startLine + "\n");
 	e.expect("breakpoint.*\n" + prompt);
 	
-	System.err.println("send go");
 	e.send("go\n");
 	e.expect("go.*\n" + prompt + "Breakpoint.*#*");
 
-	e.send("stepi\n");
+	e.send("step --instruction\n");
 	e.expect("Task stopped at line " + startLine + ".*\n" + prompt);
 
 	e.send("quit\n");
@@ -81,18 +76,14 @@ public class TestFhpdStepping extends TestLib {
     
     public void testLineStep () {
 	
-	if (unresolved(4914))
-	    return;
-	
 	File source = Prefix.sourceFile("frysk-core/frysk/pkglibdir/funit-stepping-asm.S");
 	this.scanner = new TestfileTokenScanner(source);
 	int startLine = this.scanner.findTokenLine("_instructionStep_");
 	int endLine = this.scanner.findTokenLine("_lineStepEnd_");
 	
-	e = HpdTestbed.run("funit-stepping-asm");
-	
-	// Remove this - #4919 and #4914.
-	try { Thread.sleep(2000); } catch (Exception e) {}
+	e = HpdTestbed.load("funit-stepping-asm");
+        e.send("start\n");
+        e.expect("starting with this commmand.*" + prompt);
 	
 	e.send("break #" + source + "#" + startLine + "\n");
 	e.expect("breakpoint.*\n" + prompt);
@@ -110,18 +101,14 @@ public class TestFhpdStepping extends TestLib {
     
     public void testNextStep () {
 	
-	if (unresolved(4914))
-	    return;
-	
 	File source = Prefix.sourceFile("frysk-core/frysk/pkglibdir/funit-stepping-asm.S");
 	this.scanner = new TestfileTokenScanner(source);
 	int startLine = this.scanner.findTokenLine("_stepOverStart_");
 	int endLine = this.scanner.findTokenLine("_stepOverEnd_");
 	
-	e = HpdTestbed.run("funit-stepping-asm");
-	
-	// Remove this - #4919 and #4914.
-	try { Thread.sleep(2000); } catch (Exception e) {}
+	e = HpdTestbed.load("funit-stepping-asm");
+        e.send("start\n");
+        e.expect("starting with this commmand.*" + prompt);
 	
 	e.send("break #" + source + "#" + startLine + "\n");
 	e.expect("breakpoint.*\n" + prompt);
@@ -139,18 +126,14 @@ public class TestFhpdStepping extends TestLib {
     
     public void testNextiStep () {
 	
-	if (unresolved(4914))
-	    return;
-	
 	File source = Prefix.sourceFile("frysk-core/frysk/pkglibdir/funit-stepping-asm.S");
 	this.scanner = new TestfileTokenScanner(source);
 	int startLine = this.scanner.findTokenLine("_stepOverStart_");
 	int endLine = this.scanner.findTokenLine("_stepOverEnd_");
 	
-	e = HpdTestbed.run("funit-stepping-asm");
-	
-	// Remove this - #4919 and #4914.
-	try { Thread.sleep(2000); } catch (Exception e) {}
+	e = HpdTestbed.load("funit-stepping-asm");
+        e.send("start\n");
+        e.expect("starting with this commmand.*" + prompt);
 	
 	e.send("break #" + source + "#" + startLine + "\n");
 	e.expect("breakpoint.*\n" + prompt);
@@ -158,7 +141,7 @@ public class TestFhpdStepping extends TestLib {
 	e.send("go\n");
 	e.expect("go.*\n" + prompt + "Breakpoint.*#*");
 	
-	e.send("nexti\n");
+	e.send("next --instruction\n");
 	e.expect("Task stopped at line " + endLine + ".*\n" + prompt);
 	
 	e.send("quit\n");
@@ -168,18 +151,14 @@ public class TestFhpdStepping extends TestLib {
     
     public void testFinishStep () {
 	
-	if (unresolved(4914))
-	    return;
-	
 	File source = Prefix.sourceFile("frysk-core/frysk/pkglibdir/funit-stepping-asm.S");
 	this.scanner = new TestfileTokenScanner(source);
 	int startLine = this.scanner.findTokenLine("_stepOutStart_");
 	int endLine = this.scanner.findTokenLine("_stepOverEnd_");
 	
-	e = HpdTestbed.run("funit-stepping-asm");
-	
-	// Remove this - #4919 and #4914.
-	try { Thread.sleep(2000); } catch (Exception e) {}
+	e = HpdTestbed.load("funit-stepping-asm");
+        e.send("start\n");
+        e.expect("starting with this commmand.*" + prompt);
 	
 	e.send("break #" + source + "#" + startLine + "\n");
 	e.expect("breakpoint.*\n" + prompt);


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-18 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-18 19:46 [SCM] master: Enable TestFhpdStepping, new testbed and remove stepi/nexti. Fixes bug #4919 mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).