public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Additional watch tests.
@ 2008-04-22 18:03 tthomas
  0 siblings, 0 replies; only message in thread
From: tthomas @ 2008-04-22 18:03 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  3221560a32ff46342a67f8ea70491c2a3b2bbfc7 (commit)
      from  8a89c5014642554b0d94e146e6aa4fc7147e0015 (commit)

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

- Log -----------------------------------------------------------------
commit 3221560a32ff46342a67f8ea70491c2a3b2bbfc7
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Tue Apr 22 14:04:26 2008 -0400

    Additional watch tests.
    
    frysk-core/frysk/hpd/ChangeLog:
    2008-04-22  Teresa Thomas  <tthomas@redhat.com>
    
    	* TestWatchCommand.java (testMultipleWatchPointSetAndHit): New.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog             |    4 +++
 frysk-core/frysk/hpd/TestWatchCommand.java |   30 ++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index bf0caf2..d05c5e8 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-22  Teresa Thomas  <tthomas@redhat.com>
+
+	* TestWatchCommand.java (testMultipleWatchPointSetAndHit): New.
+
 2008-04-21  Sami Wagiaalla  <swagiaal@redhat.com>
 
 	* BreakpointCommand.java: Now understands ObjectDeclaration.
diff --git a/frysk-core/frysk/hpd/TestWatchCommand.java b/frysk-core/frysk/hpd/TestWatchCommand.java
index 037d6b6..9e61682 100644
--- a/frysk-core/frysk/hpd/TestWatchCommand.java
+++ b/frysk-core/frysk/hpd/TestWatchCommand.java
@@ -64,4 +64,34 @@ public class TestWatchCommand extends TestLib {
       e.expect("Quitting\\.\\.\\.");
       e.close();
   }
+
+  public void testMultipleWatchPointSetAndHit()
+  {
+      e = new HpdTestbed();
+      e.sendCommandExpectPrompt("load " + Prefix.pkgLibFile("funit-watchpoint").getPath(),
+                                "Loaded executable file.*");
+      e.sendCommandExpectPrompt("start", "Attached to process.*");
+
+      e.send("watch source\n"); 
+      e.expect(".*Watchpoint set: source.*");
+      e.send("watch read_only -a\n"); 
+      e.expect(".*Watchpoint set: read_only.*");
+      
+      e.send("go\n"); 
+      e.expect(".*Watchpoint hit: source.*Value before hit ="
+	      + ".*Value after  hit =.*");
+
+      e.send("go\n"); 
+      e.expect(".*Watchpoint hit: read_only.*Value before hit ="
+	      + ".*Value after  hit =.*");
+
+      e.send("go\n"); 
+      e.expect(".*Task " + "[0-9]+" + " is exiting with status " 
+	       + "[0-9]+");
+      
+      e.send("quit\n");
+      e.expect("Quitting\\.\\.\\.");
+      e.close();
+  }  
+  
 }
\ No newline at end of file


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


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-22 18:03 [SCM] master: Additional watch tests tthomas

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).