Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 20187 invoked from network); 28 Jun 2010 06:37:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 06:37:46 -0000 Received: (qmail 68467 invoked by uid 500); 28 Jun 2010 06:37:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 68380 invoked by uid 500); 28 Jun 2010 06:37:44 -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 68373 invoked by uid 99); 28 Jun 2010 06:37:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 06:37:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 06:37:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5S6TnKI014019 for ; Mon, 28 Jun 2010 06:29:50 GMT Message-ID: <28268778.84181277706589845.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 02:29:49 -0400 (EDT) From: "Yun Lee (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4713) Subclasses of ScriptTestCase can not run correctly with the non-English default locale In-Reply-To: <2017155.55071277455489834.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yun Lee updated DERBY-4713: --------------------------- Attachment: derby-4713.stat derby-4713.patch Thanks Knut. What you suggested works indeed! There are two ways to resolve this issue. One is to do change directly in ScriptTeseCase, the other is to change all the affected subclasses. I chose the second one. As I think, maybe some future test cases will do testing baseing on non-English Locale, if we do change directly in ScriptTeseCase, we will lose expandability. Please check the patch, thanks! > Subclasses of ScriptTestCase can not run correctly with the non-English default locale > -------------------------------------------------------------------------------------- > > Key: DERBY-4713 > URL: https://issues.apache.org/jira/browse/DERBY-4713 > Project: Derby > Issue Type: Bug > Components: Test > Reporter: Yun Lee > Assignee: Yun Lee > Attachments: derby-4713.patch, derby-4713.stat > > > If the default locale is not English, many subclasses of ScriptTestCase will fail. > For example, run NetIjTest (a subclass of ScriptTestcase) in a Chinese OS, the test case will fail: > D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests > .tests.derbynet.NetIjTest > .F > Time: 5.422 > There was 1 failure: > 1) testclientij(org.apache.derbyTesting.functionTests.tests.derbynet.NetIjTest)j > unit.framework.ComparisonFailure: Output at line 34 expected:<[ERROR 42X05: Tabl > e/View 'APP.NOTTHERE' does not exist.]> but was:<[?? 42X05??????APP.NOTTHERE???? > ?]> > at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon > (CanonTestCase.java:106) > at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(Scr > iptTestCase.java:198) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java: > 109) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > 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:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > 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:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 > While, it succeed running with a English-language lcoale. > D:\derby\test>java -Duser.language=en junit.textui.TestRunner org.apache.derbyTe > sting.functionTests.tests.derbynet.NetIjTest > . > Time: 6.187 > OK (1 test) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.