public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Fix bz #6614 (testing with TestCoreCommand)
@ 2008-06-11 20:42 rmoseley
  0 siblings, 0 replies; only message in thread
From: rmoseley @ 2008-06-11 20:42 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  e9ea00b225af9daaeb8e705d750c1331b912976a (commit)
      from  33239fb5159db92b6e4df94c2c5dc27113ff98ae (commit)

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

- Log -----------------------------------------------------------------
commit e9ea00b225af9daaeb8e705d750c1331b912976a
Author: Rick Moseley <rmoseley@localhost.localdomain>
Date:   Wed Jun 11 15:40:31 2008 -0500

    Fix bz #6614 (testing with TestCoreCommand)
    
    * TestCoreCommand.java: Add test for passing parameters.
    * CorefileFactory.java: Change to call DaemonBlockedAtEntry.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog                |    4 ++++
 frysk-core/frysk/hpd/TestCoreCommand.java     |    9 +++------
 frysk-core/frysk/testbed/ChangeLog            |    5 +++++
 frysk-core/frysk/testbed/CorefileFactory.java |    4 ++--
 4 files changed, 14 insertions(+), 8 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index b7dd24d..a0daee0 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-11  Rick Moseley  <rmoseley@redhat.com>
+
+	* TestCoreCommand.java: Fix bz #6614.
+
 2008-06-11  Teresa Thomas  <tthomas@redhat.com>
 
 	* TestWatchCommand.java (testWatchArraySlice): New test.
diff --git a/frysk-core/frysk/hpd/TestCoreCommand.java b/frysk-core/frysk/hpd/TestCoreCommand.java
index 0722d8b..5179d6d 100644
--- a/frysk-core/frysk/hpd/TestCoreCommand.java
+++ b/frysk-core/frysk/hpd/TestCoreCommand.java
@@ -111,14 +111,11 @@ public class TestCoreCommand extends TestLib {
     
     public void testCoreLoadedParamsTwo() {
 
-	if (unresolved(6614))
-	    return;
-//	File exe = new File("/bin/echo");
-	File exe = Prefix.pkgLibFile("funit-hello");
-	File core = CorefileFactory.constructCoreAtSignal(exe, new String[] {"abcd"});
+	File exe = new File("/bin/echo");
+	File core = CorefileFactory.constructCoreAtEntry(exe, new String[] {"abcd"});
 	e = new HpdTestbed();
 	e.sendCommandExpectPrompt("core " + core.getPath(), "Attached to core.*");
-	e.sendCommandExpectPrompt("info args", "output");
+	e.sendCommandExpectPrompt("info args", "abcd.*");
 	e.sendCommandExpectPrompt("run", "running.*abcd.*" +
 		"Attached to process ([0-9]+).*" + "Running process ([0-9]+).*");
 	e.send("quit\n");
diff --git a/frysk-core/frysk/testbed/ChangeLog b/frysk-core/frysk/testbed/ChangeLog
index 4952a98..90aee82 100644
--- a/frysk-core/frysk/testbed/ChangeLog
+++ b/frysk-core/frysk/testbed/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-11  Rick Moseley  <rmoseley@redhat.com>
+
+	* CorefileFactory.java: Change method to call
+	DaemonBlockedAtEntry instead of DaemonBlockedAtSignal.
+
 2008-06-10  Rick Moseley  <rmoseley@redhat.com>
 
 	* CorefileFactory.java: Add method to pass args.
diff --git a/frysk-core/frysk/testbed/CorefileFactory.java b/frysk-core/frysk/testbed/CorefileFactory.java
index ad305ed..571869d 100644
--- a/frysk-core/frysk/testbed/CorefileFactory.java
+++ b/frysk-core/frysk/testbed/CorefileFactory.java
@@ -80,13 +80,13 @@ public class CorefileFactory extends TestLib {
      * then extracts a corefile at that point, and return a File
      * representing that core file.
      */
-    public static File constructCoreAtSignal(File exeFile, String[] args) {
+    public static File constructCoreAtEntry(File exeFile, String[] args) {
 	String[] newargs = new String[args.length + 1];
 	newargs[0] = exeFile.getAbsolutePath();
 	for (int i = 0; i < args.length; i++)
 	    newargs[i+1] = args[i];
 	final Proc ackProc
-	    = new DaemonBlockedAtSignal(newargs).getMainTask().getProc();
+	    = new DaemonBlockedAtEntry(newargs).getMainTask().getProc();
 	return constructCore(ackProc);
     }
 


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


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

only message in thread, other threads:[~2008-06-11 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 20:42 [SCM] master: Fix bz #6614 (testing with TestCoreCommand) rmoseley

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