8290497: some tests in com/sun/jdi fail on localized Windows platform

Reviewed-by: sspitsyn, cjplummer, amenkov
This commit is contained in:
KIRIYAMA Takuya 2022-08-01 08:12:25 +00:00 committed by Serguei Spitsyn
parent 7ff19694df
commit d61c0c79cf
2 changed files with 4 additions and 2 deletions
test/jdk/com/sun/jdi

@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -76,7 +76,7 @@ mkFiles()
doit()
{
echo quit | $TESTJAVA/bin/jdb -J-Duser.home=$HOME > $tmpResult 2>&1
echo quit | $TESTJAVA/bin/jdb -J-Duser.language=en -J-Duser.country=US -J-Duser.home=$HOME > $tmpResult 2>&1
}
failIfNot()

@ -42,6 +42,8 @@ import jdk.test.lib.process.StreamPumper;
public class Jdb implements AutoCloseable {
public Jdb(String... args) {
ProcessBuilder pb = new ProcessBuilder(JDKToolFinder.getTestJDKTool("jdb"));
pb.command().add("-J-Duser.language=en");
pb.command().add("-J-Duser.country=US");
pb.command().addAll(Arrays.asList(args));
try {
jdb = pb.start();