Bryan Pendleton wrote:
I have this habit of running the tests by typing:
java org.apache.derbyTesting.functionTests.harness.RunSuite derbyall;
java junit.textui.TestRunner
org.apache.derbyTesting.functionTests.suites.All
That is, both commands consecutively in the same directory.
The last time I tried this, I got a bunch of errors during the Junit
tests about "Failed to create database 'wombat'... directory already
exists".
When I run the Junit tests in an empty directory by themselves, no problem.
Anybody else seeing this?
Just from the top of my head, have you used JAVA_TOOL_OPTIONS or any
other mechanism to set derby.system.home?
I thought the JUnit harness would use the directory 'system' for the
database(s) when derby.system.home is not set.
Unless the old harness also uses the 'system' directory, or a JUnit test
somehow override the default, I believe running them the way you do
should be fine.
--
Kristian
thanks,
bryan