From 9d55bcc9ca1ca95a91b29621859a9373b114784d Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Fri, 2 Mar 2012 11:29:48 +0000 Subject: [PATCH] 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 --- .../apache/solr/client/solrj/embedded/TestSolrProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java b/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java index 59fa18c64d6..eb1468795d7 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java +++ b/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java @@ -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(); }