public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: rmoseley@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Test "start" command for parameters that begin with "-". Date: Tue, 26 Feb 2008 05:17:00 -0000 [thread overview] Message-ID: <20080226051721.449.qmail@sourceware.org> (raw) 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
reply other threads:[~2008-02-26 5:17 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=20080226051721.449.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: linkBe 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).