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

Reviewed-by: naoto
  • Loading branch information
Masanori Yano authored and naotoj committed Sep 8, 2021
1 parent 7e662e7 commit cb112affd6061e8ace6dad4e92c7b394a413e37f
Showing with 14 additions and 2 deletions.
  1. +5 −1 test/jdk/tools/launcher/FXLauncherTest.java
  2. +9 −1 test/jdk/tools/launcher/SourceMode.java
@@ -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 cb112af

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on cb112af Sep 8, 2021

Please sign in to comment.