]
Hardy Ferentschik resolved HSEARCH-1067.
----------------------------------------
Resolution: Fixed
Path used in tests on Windows is illegal in certain test order
executions
-------------------------------------------------------------------------
Key: HSEARCH-1067
URL:
https://hibernate.onjira.com/browse/HSEARCH-1067
Project: Hibernate Search
Issue Type: Bug
Components: tests
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.1.0.Final
TestConstants.indexDirPath is statically initialized, so it's initialized on first
request by any test.
The path is generated by navigating back to parent of the caller stack, in an attempt to
identify which module is executing the test and isolate the indexDirPath as a temporary
directory of the specific module; to achieve this it's looking at 2 levels up in the
invoker stack, as the first one is most commonly the SearchTestCase which is shared across
modules.
In some test however this class might be invoked directly, so looking 2 levels up results
in a lookup of the file resource containing a JDK class, which ultimately resolves in an
illegal path when using Windows. So test execution order could have this statically
initialized variable provide an illegal path for all tests.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: