< prev index next >

test/jdk/sun/security/tools/jarsigner/AltProvider.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 21,31 **** * questions. */ /* * @test ! * @bug 4906940 8130302 * @summary -providerPath, -providerClass, -addprovider, and -providerArg * @library /test/lib * @modules java.base/jdk.internal.misc * @build jdk.test.lib.util.JarUtils * jdk.test.lib.compiler.CompilerUtils --- 21,31 ---- * questions. */ /* * @test ! * @bug 4906940 8130302 8194152 * @summary -providerPath, -providerClass, -addprovider, and -providerArg * @library /test/lib * @modules java.base/jdk.internal.misc * @build jdk.test.lib.util.JarUtils * jdk.test.lib.compiler.CompilerUtils
*** 164,171 **** --- 164,176 ---- l.addVMArg(a.substring(2)); } else { l.addToolArg(a); } } + + // 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"); + return ProcessTools.executeCommand(l.getCommand()); } }
< prev index next >