mirror of https://github.com/apache/lucene.git
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:
parent
adebb1592a
commit
9d55bcc9ca
|
@ -263,7 +263,7 @@ public class TestSolrProperties extends LuceneTestCase {
|
||||||
fis = new FileInputStream(new File(solrXml.getParent(), "solr-persist.xml"));
|
fis = new FileInputStream(new File(solrXml.getParent(), "solr-persist.xml"));
|
||||||
try {
|
try {
|
||||||
Document document = builder.parse(fis);
|
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 {
|
} finally {
|
||||||
fis.close();
|
fis.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue