Issue Details (XML | Word | Printable)

Key: DERBY-4096
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Dag H. Wanvik
Reporter: Ole Solberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

'testRunTimeStatistics(org.apache.derbyTesting.functionTests.tests.lang.OffsetFetchNextTest)junit.framework.AssertionFailedError' on Windows

Created: 16/Mar/09 09:01 AM   Updated: 29/Jun/09 10:57 PM
Component/s: Test
Affects Version/s: 10.5.1.1
Fix Version/s: 10.5.1.1

Time Tracking:
Not Specified

Environment: Windows
Issue Links:
Reference
 

Bug behavior facts: Regression Test Failure
Resolution Date: 17/Mar/09 01:02 AM
Labels:


 Description  « Hide
See e.g.
http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-754693.html
http://dbtg.thresher.com/derby/test/Daily/jvm1.5/testing/Limited/testSummary-754693.html
http://dbtg.thresher.com/derby/test/Daily/jvm1.4/testing/Limited/testSummary-754693.html

There were 2 failures:
1) testRunTimeStatistics(org.apache.derbyTesting.functionTests.tests.lang.OffsetFetchNextTest)junit.framework.AssertionFailedError
at org.apache.derbyTesting.functionTests.tests.lang.OffsetFetchNextTest.testRunTimeStatistics(OffsetFetchNextTest.java:605)
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:105)
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)
2) testRunTimeStatistics(org.apache.derbyTesting.functionTests.tests.lang.OffsetFetchNextTest)junit.framework.AssertionFailedError
at org.apache.derbyTesting.functionTests.tests.lang.OffsetFetchNextTest.testRunTimeStatistics(OffsetFetchNextTest.java:605)
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:105)
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 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)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Knut Anders Hatlen added a comment - 16/Mar/09 10:02 PM
Both failures were caused by this assert:

        // Verify that the plan shows the filtering (2 rows of 3 seen):
        assertTrue(plan.indexOf("Row Count (1):" + nl +
                                "Number of opens = 1" + nl +
                                "Rows seen = 3" + nl +
                                "Rows filtered = 2") != -1);

My guess is that there's something wrong with the handling of newlines on some platforms.

Dag H. Wanvik added a comment - 17/Mar/09 12:03 AM
I suspect Knut is correct; the test parameterizes newlines to be platform dependent,
but it may be that in this case, UNIX style newlines are still being used.
I don't run on a Windows platform right now, but if that theory is correct, just replacing the "nl"
occurences with "\n" should make it work. I'll see if I can find a Windows platform and try it unless somebody beats me to it.


Dag H. Wanvik made changes - 17/Mar/09 12:50 AM
Field Original Value New Value
Link This issue relates to DERBY-4079 [ DERBY-4079 ]
Dag H. Wanvik made changes - 17/Mar/09 01:00 AM
Assignee Dag H. Wanvik [ dagw ]
Dag H. Wanvik added a comment - 17/Mar/09 01:02 AM
Fixed this error as part of DERBY-4079, cf. patch derby-4079-fixRtStatsTest attached to that issue; resolving.

Dag H. Wanvik made changes - 17/Mar/09 01:02 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Dag H. Wanvik made changes - 17/Mar/09 01:04 AM
Fix Version/s 10.5.0.0 [ 12313010 ]
Myrna van Lunteren made changes - 04/May/09 06:21 PM
Affects Version/s 10.5.1.1 [ 12313771 ]
Affects Version/s 10.5.0.0 [ 12313010 ]
Fix Version/s 10.5.1.1 [ 12313771 ]
Fix Version/s 10.5.0.0 [ 12313010 ]
Ole Solberg made changes - 11/May/09 09:31 AM
Status Resolved [ 5 ] Closed [ 6 ]
Dag H. Wanvik made changes - 29/Jun/09 10:43 PM
Component/s Regression Test Failure [ 12310664 ]
Dag H. Wanvik made changes - 29/Jun/09 10:57 PM
Component/s Test [ 11413 ]