diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java index 28ffc64bb9c..3086a88c6af 100644 --- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java +++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java @@ -482,7 +482,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes path = path.substring(0, path.length() - 2); } - int splits = path.split(File.separator).length; + int splits = path.split("\\" + File.separator).length; StringBuilder p = new StringBuilder(); for (int i = 0; i < splits - 2; i++) {