db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4307) testRunTests in RuntimeinfoTest fails periodically with Assertion failure checking output
Date Wed, 15 Jul 2009 09:51:14 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kristian Waagan updated DERBY-4307:
-----------------------------------

    Attachment: derby-4307-1a-test_fix.diff

Attaching a possible fix for the issue as patch 1a.

The reason why the test started failing, was the commit of the new localized messages (revision
793870).
The relevant message is this one (in German):
DRDA_RuntimeInfoPreparedStatementHeader.I=Informationen zur vorbereiteten Anweisung\: \n\tAnwsg-ID\t\tSQL-Text\n\t-------------\t-----------\n

As far as I can see, the original English message is old and has been kept unchanged for a
long time, but the localized messages were all changed to correct a mismatch for the number
of dashes used.
In the English message, there are 13 and 11 dashes. In the "old" localized ones, there were
14 and 12. This was corrected to 13 and 11 in the newest version of the messages.

Since the original English message hasn't been changed for such a long time, I chose to fix
the match string in the test rather then fixing all the localized messages.


Patch ready for review.

> testRunTests in RuntimeinfoTest fails periodically with Assertion failure checking output
> -----------------------------------------------------------------------------------------
>
>                 Key: DERBY-4307
>                 URL: https://issues.apache.org/jira/browse/DERBY-4307
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.0.0
>            Reporter: Kathey Marsden
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-4307-1a-test_fix.diff
>
>
> The  nightly runs have reported intermittent occurences of the failure below on multiple
platforms. It might be helpful to have the assertion print the expected and actual output
so we can compare and see why it doesn't match:
> 1) testRunTests(org.apache.derbyTesting.functionTests.tests.derbynet.RuntimeInfoTest)junit.framework.AssertionFailedError
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.RuntimeInfoTest.x_testRuntimeInfoLocale(RuntimeInfoTest.java:158)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.RuntimeInfoTest.testRunTests(RuntimeInfoTest.java:92)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	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: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)
> 	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)
> 	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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message