Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D1069553 for ; Tue, 21 Feb 2012 08:19:32 +0000 (UTC) Received: (qmail 22063 invoked by uid 500); 21 Feb 2012 08:19:32 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 22040 invoked by uid 500); 21 Feb 2012 08:19:32 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 22030 invoked by uid 99); 21 Feb 2012 08:19:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 08:19:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 08:19:31 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AE75323889EC; Tue, 21 Feb 2012 08:19:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1291647 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Date: Tue, 21 Feb 2012 08:19:11 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120221081911.AE75323889EC@eris.apache.org> Author: kristwaa Date: Tue Feb 21 08:19:11 2012 New Revision: 1291647 URL: http://svn.apache.org/viewvc?rev=1291647&view=rev Log: DERBY-5608: BaseTestCase.readProcessOutput should read getInputStream() and getErrorStream() in separate threads Removed space character from the text prepended to the stdout output from the spawned process. Should be safe since all uses of the output relies on indexOf, trimming or similar mechanisms (i.e. no exact match). Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1291647&r1=1291646&r2=1291647&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Tue Feb 21 08:19:11 2012 @@ -785,7 +785,7 @@ public abstract class BaseTestCase } catch (IOException ioe) { fail("process completion method failed", ioe); } - String output = " " + wrapper.getFullServerOutput() + + String output = "" + wrapper.getFullServerOutput() + "\n"; output += "" + wrapper.getFullServerError() + "\n";