8219651: compiler/ciReplay/TestServerVM.java is failing on windows
Reviewed-by: thartmann, kvn
--- a/test/hotspot/jtreg/compiler/ciReplay/CiReplayBase.java Thu Mar 07 08:38:16 2019 +0100
+++ b/test/hotspot/jtreg/compiler/ciReplay/CiReplayBase.java Wed Mar 06 16:01:01 2019 +0100
@@ -294,7 +294,7 @@
try {
String cmd = ProcessTools.getCommandLine(ProcessTools.createJavaProcessBuilder(true, args));
return new String[]{"sh", "-c", prefix
- + (Platform.isWindows() ? cmd.replace('\\', '/').replace(";", "\\;") : cmd)};
+ + (Platform.isWindows() ? cmd.replace('\\', '/').replace(";", "\\;").replace("|", "\\|") : cmd)};
} catch(Throwable t) {
throw new Error("Can't create process builder: " + t, t);
}