8219651: compiler/ciReplay/TestServerVM.java is failing on windows
authorgoetz
Wed, 06 Mar 2019 16:01:01 +0100
changeset 54016 a7cccbdf73f3
parent 54015 cd701366fcf8
child 54017 274361bd6915
8219651: compiler/ciReplay/TestServerVM.java is failing on windows Reviewed-by: thartmann, kvn
test/hotspot/jtreg/compiler/ciReplay/CiReplayBase.java
--- 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);
         }