OpenJDK / zgc / zgc
changeset 51199:c9f193a8b671
8194152: sun/security/tools/jarsigner/AltProvider.java failed on de-DE locale
Reviewed-by: naoto
Contributed-by: dan.z.zhou@oracle.com
author | xiaofeya |
---|---|
date | Mon, 25 Jun 2018 20:08:05 -0700 |
parents | 7284ce754713 |
children | 9f781ce22e7d |
files | test/jdk/sun/security/tools/jarsigner/AltProvider.java |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/jdk/sun/security/tools/jarsigner/AltProvider.java Mon Jun 25 20:03:46 2018 -0700 +++ b/test/jdk/sun/security/tools/jarsigner/AltProvider.java Mon Jun 25 20:08:05 2018 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2018, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4906940 8130302 + * @bug 4906940 8130302 8194152 * @summary -providerPath, -providerClass, -addprovider, and -providerArg * @library /test/lib * @modules java.base/jdk.internal.misc @@ -159,6 +159,11 @@ private static OutputAnalyzer tool(String tool, String args) throws Throwable { JDKToolLauncher l = JDKToolLauncher.createUsingTestJDK(tool); + + // Set locale to en-US so that the output are not translated into other languages. + l.addVMArg("-Duser.language=en"); + l.addVMArg("-Duser.country=US"); + for (String a: args.split("\\s+")) { if (a.startsWith("-J")) { l.addVMArg(a.substring(2));