This is the mail archive of the
frysk-cvs@sources.redhat.com
mailing list for the frysk project.
[SCM] master: Test "start" command for parameters that begin with "-".
- From: rmoseley at sourceware dot org
- To: frysk-cvs at sourceware dot org
- Date: 26 Feb 2008 05:17:21 -0000
- Subject: [SCM] master: Test "start" command for parameters that begin with "-".
- Reply-to: frysk at sourceware dot org
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