[ 
https://issues.apache.org/jira/browse/DERBY-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488786
 ] 

Ugo Matrangolo commented on DERBY-2543:
---------------------------------------

I was checking why the test passes when executed alone and fails in a suite.

My first thought was that other tests can influence the 
derby.language.maxMemoryPerTable=1 property; a simple println() revealed
that it is not the case. Running the test in a suite doesn't affect this value.

I composed a little suite with :

suite.addTest(UpdateCursorTest.suite());
suite.addTest(DistinctTest.suite());       
suite.addTest(GroupByTest.suite());

and the test did ok. Then I tried :

suite.addTest(DistinctTest.suite());       
suite.addTest(UpdateCursorTest.suite());      
suite.addTest(GroupByTest.suite());

and the test failed. Both times the property was ok.

I'm investigating what changes between these two cases.

Hope this helps.


 



>  testVirtualMemoryHeap junit test fails with "Virtual memory heap test 
> failed! Got unexpected value. expected:<202> but was:<103>"
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2543
>                 URL: https://issues.apache.org/jira/browse/DERBY-2543
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>            Reporter: Mike Matrigali
>
> junit suite fails with the following error:
> 2) 
> testVirtualMemoryHeap(org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest)junit.framework.AssertionFailedError:
>  Virtual memory heap test failed! Got unexpected value. expected:<202> but 
> was:<103>
>       at 
> org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest.testVirtualMemoryHeap(UpdateCursorTest.java:178)
>       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:88)
>       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.

Reply via email to