public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: mark@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Enable TestFhpdStepping, new testbed and remove stepi/nexti. Fixes bug #4919. Date: Fri, 18 Apr 2008 19:46:00 -0000 [thread overview] Message-ID: <20080418194610.19183.qmail@sourceware.org> (raw) 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
reply other threads:[~2008-04-18 19:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080418194610.19183.qmail@sourceware.org \ --to=mark@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).