Skip to content
Permalink
Browse files
8269373: some tests in jdk/tools/launcher/ fails on localized Windows…
… platform

Backport-of: cb112affd6061e8ace6dad4e92c7b394a413e37f
  • Loading branch information
GoeLin committed Mar 11, 2022
1 parent 6dcf10b commit 8197fd4781d8ba6594f1621a17e2dca669664eab
Showing 2 changed files with 14 additions and 2 deletions.
@@ -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 @@ static void testExtendFXApp(boolean useCP, boolean setFXMainClass) throws Except
*/
@Test
static void testMissingMC() throws Exception {
if (!isEnglishLocale()) {
return;
}

String testname = "testMissingMC";
testcount++;
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.
*
* This code is free software; you can redistribute it and/or modify it
@@ -200,6 +200,10 @@ void testClasspath() throws IOException {
// 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 @@ void testClassNamedJava() throws IOException {
// 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"));

1 comment on commit 8197fd4

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 8197fd4 Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.