You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Myrna van Lunteren (JIRA)" <ji...@apache.org> on 2014/10/08 03:07:33 UTC
[jira] [Updated] (DERBY-6610) suites.All cannot be run with classes
without failures
[ https://issues.apache.org/jira/browse/DERBY-6610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Myrna van Lunteren updated DERBY-6610:
--------------------------------------
Attachment: DERBY-6610_1.diff
attaching a patch which makes returns an empty compatibility test if we're not loading the (JVMInfo and other) classes from jars. I'll commit this patch.
Before this patch, we'd get an exception like the following when running suites.All:
Failed to invoke class org.apache.derbyTesting.functionTests.tests.compatibility._Suite
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:492)
at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
at org.apache.derbyTesting.functionTests.suites.AllPackages.addSuiteByReflection(AllPackages.java:147)
at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:58)
at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:492)
at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
at junit.textui.TestRunner.start(TestRunner.java:184)
at junit.textui.TestRunner.main(TestRunner.java:143)
Caused by: java.lang.IllegalStateException: only running off jars is supported, currently running off directory C:\[derbyhomedir]\trunk\classes
at org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.getJarDirectoryOf(VersionCombinationConfigurator.java:320)
at org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.getRunningDistribution(VersionCombinationConfigurator.java:292)
at org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.filterVersions(VersionCombinationConfigurator.java:267)
at org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.addTests(VersionCombinationConfigurator.java:170)
at org.apache.derbyTesting.functionTests.tests.compatibility._Suite.addVersionCombinations(_Suite.java:79)
at org.apache.derbyTesting.functionTests.tests.compatibility._Suite.suite(_Suite.java:133)
... 15 more
> suites.All cannot be run with classes without failures
> ------------------------------------------------------
>
> Key: DERBY-6610
> URL: https://issues.apache.org/jira/browse/DERBY-6610
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.11.1.1
> Reporter: Myrna van Lunteren
> Assignee: Myrna van Lunteren
> Priority: Minor
> Attachments: DERBY-6610_1.diff, tmp-permission.diff
>
>
> suites.All no longer runs cleanly for me when I run with just classes.
> It still runs fine with jars.
> We accepted this behavior at some point, but it is frustrating when you want to 'quickly' run tests while still working on some details.
> One of the tests that failed for me was lang.DatabaseClassLoadingTest (complaining about one of the databases not found), another was lang.LuceneSupportPermsTest.
> If a test cannot run cleanly with classes, it should get skipped (preferably both in the test itself and from the _Suite in which it is included).
> I also think some of the network server tests complain if derbynet.jar is not found - I cannot off-hand remember if this causes the test to fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)