Skip to content
Permalink
Browse files
8244676: test/jdk/jdk/jfr/startupargs/TestOptionsWithLocale.java fails
Reviewed-by: mgronlun
  • Loading branch information
egahlin committed May 11, 2020
1 parent 9253c29 commit 3b9367636e6daaa559f7651f7aabedc5e394f4fc
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/jdk/jdk/jfr/startupargs/TestOptionsWithLocale.java
@@ -16,7 +16,7 @@
* @requires vm.hasJFR
* @modules jdk.jfr
* @library /test/lib
* @run main jdk.jfr.startupargs.TestOptionsWithLocale
* @run main/othervm jdk.jfr.startupargs.TestOptionsWithLocale
*/
public class TestOptionsWithLocale {

@@ -29,6 +29,13 @@ public static void main(String... args) {
}

public static void main(String... args) throws IOException {
// Can only run test if jdk.localedata is available.
// Can't specify @module jdk.jfr jdk.localedata, because
// --limit-modules jdk.jfr,jdk.localedata prevents the product issue.
if (ModuleLayer.boot().findModule("jdk.localedata").isEmpty()) {
return;
}

ProcessBuilder pb = ProcessTools.createTestJvm(
"-Duser.country=DE",
"-Duser.language=de",

0 comments on commit 3b93676

Please sign in to comment.