Skip to content
Permalink
Browse files
8272358: Some tests may fail when executed with other locales than th…
…e US

Backport-of: 29e552c03a2825f9526330072668a1d63ac68fd4
  • Loading branch information
GoeLin committed Apr 5, 2022
1 parent b08aae1 commit a852ad152781b4323abfd590e37fb389a49e34e6
Showing 4 changed files with 9 additions and 8 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 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
@@ -552,7 +552,7 @@ public void testOpenFileOverHttp() throws IOException {
}

public void testOpenResource() {
test(
test(new String[]{"-R", "-Duser.language=en", "-R", "-Duser.country=US"},
(a) -> assertCommand(a, "/open PRINTING", ""),
(a) -> assertCommandOutputContains(a, "/list",
"void println", "System.out.printf"),
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 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
@@ -675,7 +675,8 @@ public void testBlankLinesInSnippetContinuation() {

@Test
public void testCompoundStart() {
test(new String[]{"--startup", "DEFAULT", "--startup", "PRINTING"},
test(new String[]{"-R", "-Duser.language=en", "-R", "-Duser.country=US",
"--startup", "DEFAULT", "--startup", "PRINTING"},
(a) -> assertCommand(a, "printf(\"%4.2f\", Math.PI)",
"", "", null, "3.14", "")
);
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 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
@@ -25,7 +25,7 @@
* @test
* @bug 8003639
* @summary convert lambda testng tests to jtreg and add them
* @run testng LambdaTranslationTest1
* @run testng/othervm -Duser.language=en -Duser.country=US LambdaTranslationTest1
*/

import org.testng.annotations.Test;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 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
@@ -25,7 +25,7 @@
* @test
* @bug 8003639
* @summary convert lambda testng tests to jtreg and add them
* @run testng LambdaTranslationTest2
* @run testng/othervm -Duser.language=en -Duser.country=US LambdaTranslationTest2
*/

import org.testng.annotations.Test;

1 comment on commit a852ad1

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on a852ad1 Apr 5, 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.