From derby-dev-return-79473-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Thu Jul 01 11:56:49 2010 Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 70219 invoked from network); 1 Jul 2010 11:56:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 11:56:49 -0000 Received: (qmail 3768 invoked by uid 500); 1 Jul 2010 11:56:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3002 invoked by uid 500); 1 Jul 2010 11:56:46 -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 2990 invoked by uid 99); 1 Jul 2010 11:56:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 11:56:45 +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; Thu, 01 Jul 2010 11:56:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o61BmpUN026847 for ; Thu, 1 Jul 2010 11:48:51 GMT Message-ID: <20337288.152551277984931187.JavaMail.jira@thor> Date: Thu, 1 Jul 2010 07:48:51 -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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4713?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Yun Lee updated DERBY-4713: --------------------------- Attachment: derby-4713-1.patch bit.out derby-4713-1.stat Ask for help=EF=BC=81 I have tried to do changing in ScriptTestSetup directly, just in the derby-= 4713-1.patch. However, it doesn't work as expected. Some subclasses of Scr= iptTestSetupLangScripts, such as ImportExportIJTest, LangScripts, SURijTest= and NistScripts (also a subclass of ScriptTestSetup) can not pass with a l= ot of '?' in the test result. I also attached bit.out (the output of bit te= st in LangScripts), in which you can see a lot of '?' in it. I have spent a lot of time on debugging this problem, but could not resolve= it. I have also tried to do changing in CanonTestCase, the situation was a= lso bad. In my debugging, I'm sure , the default Locale has changed indeed= and the runTest() method of ScriptTestCase was running in a US Locale. I h= ave also tried to use some other Locale, such as "en_CN", but they all fail= ed in the same situation. I have to ask for help to resolve this problem. As to my patch attcahed las= t time, it can works well for every test. It seems in the patch attached th= is time, ij has still run in a Locale not as expected.=20 Please give some advice, thanks very much! > Subclasses of ScriptTestCase can not run correctly with the non-English d= efault 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: bit.out, derby-4713-1.patch, derby-4713-1.stat, derb= y-4713.patch, derby-4713.stat > > > If the default locale is not English, many subclasses of ScriptTestCase w= ill fail.=20 > For example, run NetIjTest (a subclass of ScriptTestcase) in a Chinese O= S, the test case will fail: > D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functi= onTests > .tests.derbynet.NetIjTest > .F > Time: 5.422 > There was 1 failure: > 1) testclientij(org.apache.derbyTesting.functionTests.tests.derbynet.NetI= jTest)j > unit.framework.ComparisonFailure: Output at line 34 expected:<[ERROR 42X0= 5: Tabl > e/View 'APP.NOTTHERE' does not exist.]> but was:<[?? 42X05??????APP.NOTTH= ERE???? > ?]> > at org.apache.derbyTesting.functionTests.util.CanonTestCase.compa= reCanon > (CanonTestCase.java:106) > at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runT= est(Scr > iptTestCase.java:198) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCas= e.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=20 > While, it succeed running with a English-language lcoale. > D:\derby\test>java -Duser.language=3Den junit.textui.TestRunner org.apach= e.derbyTe > sting.functionTests.tests.derbynet.NetIjTest > . > Time: 6.187 > OK (1 test) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.