Fixed a test failing on Windows (slash/backslash inconsistency). I check for an alternative, don't know if it should be normalized on persist.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1296150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-03-02 11:29:48 +00:00
parent adebb1592a
commit 9d55bcc9ca
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ public class TestSolrProperties extends LuceneTestCase {
fis = new FileInputStream(new File(solrXml.getParent(), "solr-persist.xml"));
try {
Document document = builder.parse(fis);
assertTrue(exists("/solr/cores/core[@name='collection1' and @instanceDir='./']", document));
assertTrue(exists("/solr/cores/core[@name='collection1' and (@instanceDir='./' or @instanceDir='.\\')]", document));
} finally {
fis.close();
}