Skip to content

Commit

Permalink
Fix test lib path separator on windows (elastic#106333)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst authored Mar 13, 2024
1 parent 92061f0 commit e435129
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.elasticsearch.gradle.Architecture;
import org.elasticsearch.gradle.ElasticsearchDistribution;

import java.io.File;
import java.util.Locale;

public class TestUtil {
Expand All @@ -20,6 +21,6 @@ public static String getTestLibraryPath(String nativeLibsDir) {
String platform = String.format(Locale.ROOT, "%s-%s", ElasticsearchDistribution.CURRENT_PLATFORM, arch);
String existingLibraryPath = System.getProperty("java.library.path");

return String.format(Locale.ROOT, "%s/%s:%s", nativeLibsDir, platform, existingLibraryPath);
return String.format(Locale.ROOT, "%s/%s%c%s", nativeLibsDir, platform, File.pathSeparatorChar, existingLibraryPath);
}
}

0 comments on commit e435129

Please sign in to comment.