public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Test "start" command for parameters that begin with "-".
@ 2008-02-26  5:17 rmoseley
  0 siblings, 0 replies; only message in thread
From: rmoseley @ 2008-02-26  5:17 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  b1e43dbc905f9ab3aa3e20e6f4cd9645823d7367 (commit)
      from  7867d597f2f3c2557d30f38518951d41cddfc247 (commit)

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

- Log -----------------------------------------------------------------
commit b1e43dbc905f9ab3aa3e20e6f4cd9645823d7367
Author: Rick Moseley <rmoseley@localhost.localdomain>
Date:   Mon Feb 25 23:16:16 2008 -0600

    Test "start" command for parameters that begin with "-".
    
    * TestStartCommand.java: Test for parameters with "-" at the
            beginning.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog             |    1 +
 frysk-core/frysk/hpd/TestStartCommand.java |    8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index b3b3b5d..5bf8a8a 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -5,6 +5,7 @@
 	parse the commands, pass straight to the command.
 	* TestRunCommand.java: Test for parameters with "-" at the 
 	beginning.
+	* TestStartCommand.java: Ditto.
 
 2008-02-25  Andrew Cagney  <cagney@redhat.com>
 
diff --git a/frysk-core/frysk/hpd/TestStartCommand.java b/frysk-core/frysk/hpd/TestStartCommand.java
index d185b2e..6e720ad 100644
--- a/frysk-core/frysk/hpd/TestStartCommand.java
+++ b/frysk-core/frysk/hpd/TestStartCommand.java
@@ -69,10 +69,14 @@ public class TestStartCommand extends TestLib {
      */
     public void testStartCommandParameter() {
 	e = new HpdTestbed();
-	String[] param = { "teststart", "parameter2start"};
+	String[] param = { "teststart", "parameter2start", "-g"};
 	e.sendCommandExpectPrompt("load " + Config.getPkgLibFile("funit-parameters").getPath(),
 	"Loaded executable file.*");
-	e.sendCommandExpectPrompt("start " + param[0] + " " + param[1], "Attached to process.*");
+	String parameters = "";
+	for (int i = 0; i < param.length; i++) {
+	    parameters = parameters + param[i] + " ";
+	}
+	e.sendCommandExpectPrompt("start " + parameters, "Attached to process.*");
 	e.sendCommandExpectPrompt("go",
 		"Running process ([0-9]+).*");
 	/*


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


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

only message in thread, other threads:[~2008-02-26  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-26  5:17 [SCM] master: Test "start" command for parameters that begin with "-" 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).