8269373: some tests in jdk/tools/launcher/ fails on localized Windows platform
Reviewed-by: naoto
This commit is contained in:
parent
7e662e7b9d
commit
cb112affd6
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -360,6 +360,10 @@ public class FXLauncherTest extends TestHelper {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
static void testMissingMC() throws Exception {
|
static void testMissingMC() throws Exception {
|
||||||
|
if (!isEnglishLocale()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String testname = "testMissingMC";
|
String testname = "testMissingMC";
|
||||||
testcount++;
|
testcount++;
|
||||||
line();
|
line();
|
||||||
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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
|
// java --add-exports=... Export.java --help
|
||||||
@Test
|
@Test
|
||||||
void testAddExports() throws IOException {
|
void testAddExports() throws IOException {
|
||||||
|
if (!isEnglishLocale()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
starting("testAddExports");
|
starting("testAddExports");
|
||||||
Path exportJava = Paths.get("Export.java");
|
Path exportJava = Paths.get("Export.java");
|
||||||
createFile(exportJava, List.of(
|
createFile(exportJava, List.of(
|
||||||
@ -254,6 +258,10 @@ public class SourceMode extends TestHelper {
|
|||||||
// java --source N -cp ... HelloWorld
|
// java --source N -cp ... HelloWorld
|
||||||
@Test
|
@Test
|
||||||
void testSourceClasspath() throws IOException {
|
void testSourceClasspath() throws IOException {
|
||||||
|
if (!isEnglishLocale()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
starting("testSourceClasspath");
|
starting("testSourceClasspath");
|
||||||
Path base = Files.createDirectories(Paths.get("testSourceClasspath"));
|
Path base = Files.createDirectories(Paths.get("testSourceClasspath"));
|
||||||
Path src = Files.createDirectories(base.resolve("src"));
|
Path src = Files.createDirectories(base.resolve("src"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user