Skip to content

Commit

Permalink
Fix recursiveCheckpoint/Test passing extra comma
Browse files Browse the repository at this point in the history
Reviewed-by: rmarchenko
  • Loading branch information
Radim Vansa committed Jun 16, 2023
1 parent ddf6a05 commit e75dbb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/lib/jdk/test/lib/crac/CracBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,10 @@ private List<String> prepareCommand(List<String> javaPrefix, boolean isRestore)
}
cmd.add("-ea");
if (engine != null) {
String engArgs = engineArgs == null ? "" : "," + Arrays.stream(engineArgs)
.map(str -> str.replace(",", "\\,")).collect(Collectors.joining(","));
String engArgs = engineArgs == null || engineArgs.length == 0 ? "" :
"," + Arrays.stream(engineArgs)
.map(str -> str.replace(",", "\\,"))
.collect(Collectors.joining(","));
cmd.add("-XX:CREngine=" + engine.engine + engArgs);
}
if (!isRestore) {
Expand Down

0 comments on commit e75dbb2

Please sign in to comment.