8269373: some tests in jdk/tools/launcher/ fails on localized Windows platform

Reviewed-by: naoto
This commit is contained in:
Masanori Yano 2021-09-08 15:46:33 +00:00 committed by Naoto Sato
parent 7e662e7b9d
commit cb112affd6
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, 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
@ -360,6 +360,10 @@ public class FXLauncherTest extends TestHelper {
*/
@Test
static void testMissingMC() throws Exception {
if (!isEnglishLocale()) {
return;
}
String testname = "testMissingMC";
testcount++;
line();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, 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
@ -200,6 +200,10 @@ public class SourceMode extends TestHelper {
// java --add-exports=... Export.java --help
@Test
void testAddExports() throws IOException {
if (!isEnglishLocale()) {
return;
}
starting("testAddExports");
Path exportJava = Paths.get("Export.java");
createFile(exportJava, List.of(
@ -254,6 +258,10 @@ public class SourceMode extends TestHelper {
// java --source N -cp ... HelloWorld
@Test
void testSourceClasspath() throws IOException {
if (!isEnglishLocale()) {
return;
}
starting("testSourceClasspath");
Path base = Files.createDirectories(Paths.get("testSourceClasspath"));
Path src = Files.createDirectories(base.resolve("src"));