Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 052C610F5F for ; Fri, 30 Aug 2013 13:52:54 +0000 (UTC) Received: (qmail 52066 invoked by uid 500); 30 Aug 2013 13:52:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51985 invoked by uid 500); 30 Aug 2013 13:52:53 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 51769 invoked by uid 99); 30 Aug 2013 13:52:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 13:52:52 +0000 Date: Fri, 30 Aug 2013 13:52:52 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6325) testPingWithBogusPort(org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClientCommandTest)junit.framework.AssertionFailedError: expectedExitValue:1 does not match exitValue:0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754704#comment-13754704 ] Knut Anders Hatlen commented on DERBY-6325: ------------------------------------------- The readProcessOutput() method is supposed to wait until the process has completed, so I don't think it should be necessary with a call to waitFor() here (the actual logic lives in the SpawnedProcess class). And exitValue() is supposed to throw IllegalThreadStateException if the process hasn't terminated yet, not return 0. > testPingWithBogusPort(org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClientCommandTest)junit.framework.AssertionFailedError: expectedExitValue:1 does not match exitValue:0 > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-6325 > URL: https://issues.apache.org/jira/browse/DERBY-6325 > Project: Derby > Issue Type: Bug > Components: Network Server, Test > Affects Versions: 10.1.3.2 > Environment: IBM 1.5 10.10 revison 1518442 > Reporter: Kathey Marsden > > Saw this in the nightlies > http://people.apache.org/~myrnavl/derby_test_results/v10_10/windows/testlog/ibm15/1518442-suites.All_diff.txt > 1) testPingWithBogusPort(org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClientCommandTest)junit.framework.AssertionFailedError: expectedExitValue:1 does not match exitValue:0 > expected output strings: > [0]Could not connect to Derby Network Server > actual output:Wed Aug 28 19:30:56 PDT 2013 : Could not connect to Derby Network Server on host localhost, port 3101: Connection refused: connect > > > expected:<1> but was:<0> > at org.apache.derbyTesting.junit.BaseTestCase.assertExecJavaCmdAsExpected(BaseTestCase.java:546) > at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClientCommandTest.assertFailedPing(NetworkServerControlClientCommandTest.java:148) > at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlClientCommandTest.testPingWithBogusPort(NetworkServerControlClientCommandTest.java:126) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:442) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:459) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira