[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-1067) Path used in tests on Windows is illegal in certain test order executions
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Mon Mar 19 07:30:48 EDT 2012
[ https://hibernate.onjira.com/browse/HSEARCH-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HSEARCH-1067:
---------------------------------------
Pull Requests: https://github.com/hibernate/hibernate-search/pull/257
> 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: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list