From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6568 invoked by alias); 15 Jan 2008 08:06:46 -0000 Received: (qmail 6527 invoked by uid 9519); 15 Jan 2008 08:06:43 -0000 Date: Tue, 15 Jan 2008 08:06:00 -0000 Message-ID: <20080115080643.6512.qmail@sourceware.org> From: rmoseley@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Add timeout so test won't fail incorrectly. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d69fbcf1960423fa8f87fc0a61dcbc4aab25657b X-Git-Newrev: 9fc22952f6344d0e95865c1adc4660adeed659ea 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/msg00057.txt.bz2 The branch, master has been updated via 9fc22952f6344d0e95865c1adc4660adeed659ea (commit) from d69fbcf1960423fa8f87fc0a61dcbc4aab25657b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 9fc22952f6344d0e95865c1adc4660adeed659ea Author: Rick Moseley Date: Tue Jan 15 02:06:26 2008 -0600 Add timeout so test won't fail incorrectly. * TestRunCommand.java: Add timeout so test won't fail incorrectly. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/hpd/ChangeLog | 2 +- frysk-core/frysk/hpd/TestRunCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog index 50cf389..016a9f3 100644 --- a/frysk-core/frysk/hpd/ChangeLog +++ b/frysk-core/frysk/hpd/ChangeLog @@ -4,7 +4,7 @@ * StartCommand.java: Move common code to StartRun.java. * RunCommand.java: Ditto. * TestStartCommand.java: Modify for above changes. - * TestRunCommand.java: Ditto. + * TestRunCommand.java: Ditto plus add timeout so test won't fail. * TestBreakpoints.java: Ditto. * TestListCommand.java: Ditto. * TestGenerateCoreCommand.java: Ditto. diff --git a/frysk-core/frysk/hpd/TestRunCommand.java b/frysk-core/frysk/hpd/TestRunCommand.java index 53681ef..786a7d3 100644 --- a/frysk-core/frysk/hpd/TestRunCommand.java +++ b/frysk-core/frysk/hpd/TestRunCommand.java @@ -73,10 +73,10 @@ public class TestRunCommand extends TestLib { try { Thread.sleep(1000); } catch (Exception e) {} e.sendCommandExpectPrompt("focus","Target set.*\\[0\\.0\\]\t\t([0-9]+)" + "\t([0-9]+)\r\n" + "\\[0\\.1\\]\t\t([0-9]+)\t([0-9]+)\r\n"); + try { Thread.sleep(1000); } catch (Exception e) {} e.sendCommandExpectPrompt("run", "Killing process ([0-9])+.*" + "Loaded executable file.*" + "Attached to process ([0-9])+.*" + "Running process ([0-9])+.*"); - try { Thread.sleep(1000); } catch (Exception e) {} e.send("quit\n"); e.expect("Quitting..."); e.close(); hooks/post-receive -- frysk system monitor/debugger