From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 492 invoked by alias); 26 Feb 2008 05:17:22 -0000 Received: (qmail 464 invoked by uid 9519); 26 Feb 2008 05:17:21 -0000 Date: Tue, 26 Feb 2008 05:17:00 -0000 Message-ID: <20080226051721.449.qmail@sourceware.org> From: rmoseley@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Test "start" command for parameters that begin with "-". X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7867d597f2f3c2557d30f38518951d41cddfc247 X-Git-Newrev: b1e43dbc905f9ab3aa3e20e6f4cd9645823d7367 Mailing-List: contact frysk-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-cvs-owner@sourceware.org Reply-To: frysk@sourceware.org X-SW-Source: 2008-q1/txt/msg00246.txt.bz2 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 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 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