changeset 54016:a7cccbdf73f3

8219651: compiler/ciReplay/TestServerVM.java is failing on windows Reviewed-by: thartmann, kvn
author goetz
date Wed, 06 Mar 2019 16:01:01 +0100
parents cd701366fcf8
children 274361bd6915
files test/hotspot/jtreg/compiler/ciReplay/CiReplayBase.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }