public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: rmoseley@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Change e.send to e.sendCommandExpectPrompt.
Date: Fri, 25 Jan 2008 21:52:00 -0000	[thread overview]
Message-ID: <20080125215159.30390.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  18dc1f26e74c45f1a2a00d617beb2eecf6689353 (commit)
      from  f175568bca99954e9f1554945a194e65224e1954 (commit)

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

- Log -----------------------------------------------------------------
commit 18dc1f26e74c45f1a2a00d617beb2eecf6689353
Author: Rick Moseley <rmoseley@localhost.localdomain>
Date:   Fri Jan 25 15:51:42 2008 -0600

    Change e.send to e.sendCommandExpectPrompt.
    
    * TestHpdTestHarness.java: Change e.send to e.sendCommandExpectPrompt.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog               |    3 ++
 frysk-core/frysk/hpd/TestHpdTestHarness.java |   46 ++++++++++++++++----------
 2 files changed, 31 insertions(+), 18 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index d26d0f7..6fd6fab 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,6 +1,9 @@
 2008-01-25  Rick Moseley  <rmoseley@redhat.com>
 
 	* TestHpdTestHarness.java: Fix pattern matches.
+	
+	
+	* TestHpdTestHarness.java: Change e.send to e.sendCommandExpectPrompt.
 
 
 2008-01-25  Andrew Cagney  <cagney@redhat.com>
diff --git a/frysk-core/frysk/hpd/TestHpdTestHarness.java b/frysk-core/frysk/hpd/TestHpdTestHarness.java
index 73bcfaa..ff8fc72 100644
--- a/frysk-core/frysk/hpd/TestHpdTestHarness.java
+++ b/frysk-core/frysk/hpd/TestHpdTestHarness.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2007 Red Hat Inc.
+// Copyright 2007, 2008 Red Hat Inc.
 //
 // FRYSK is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by
@@ -47,24 +47,34 @@ public class TestHpdTestHarness extends TestLib {
 	if (unresolved(5480))
 	    return;
 	e = new HpdTestbed();
-	e.send("load " + Config.getPkgLibFile("funit-threads-looper").getPath()
-		+ "\n");
-	e.expect("Loaded executable file.*");
+	//e.send("load " + Config.getPkgLibFile("funit-threads-looper").getPath()
+	//	+ "\n");
+	e.sendCommandExpectPrompt("load " + Config.getPkgLibFile("funit-threads-looper").getPath(),
+		"Loaded executable file.*");
+	//e.expect("Loaded executable file.*");
 	e.send("run\n");
-	e.expect("Attached to process.*");
-	e.send("go\n");
-	e.expect("Running process.*");
-	e.send("kill\n");
-	e.expect("Killing process.*");
-	e.expect("Loaded executable file.*");
-	e.send("run\n");
-	e.expect("Attached to process.*");
-	e.send("go\n");
-	e.expect("Running process*");
-	e.send("kill\n");
-	e.expect("Killing process.*");
-	e.expect("Loaded executable file.*");
-	e.expect("quit\n");
+	e.sendCommandExpectPrompt("run", "Attached to process.*starting/running.*" );
+	//e.expect("Attached to process.*");
+	//e.expect("starting/running.*");
+	//e.send("go\n");
+	e.sendCommandExpectPrompt("go", "Running process.*");
+	//e.expect("Running process.*");
+	//e.send("kill\n");
+	e.sendCommandExpectPrompt("kill", "Killing process.*Loaded executable file.*");
+	//e.expect("Killing process.*");
+	//e.expect("Loaded executable file.*");
+	//e.send("run\n");
+	e.sendCommandExpectPrompt("run", "Attached to process.*starting/running.*");
+	//e.expect("Attached to process.*");
+	//e.expect("starting/running.*");
+	//e.send("go\n");
+	e.sendCommandExpectPrompt("go", "Running process.*");
+	//e.expect("Running process*");
+	//e.send("kill\n");
+	e.sendCommandExpectPrompt("kill","Killing process.*Loaded executable file.*");
+	//e.expect("Killing process.*");
+	//e.expect("Loaded executable file.*");
+	e.send("quit\n");
 	e.expect("Quitting\\.\\.\\.");
     }
 }


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


                 reply	other threads:[~2008-01-25 21:52 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=20080125215159.30390.qmail@sourceware.org \
    --to=rmoseley@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: link
Be 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).