Skip to content
Permalink
Browse files
8246721: java/util/Locale/LocaleProvidersRun.java failed on Windows p…
…latforms

Reviewed-by: rriggs
  • Loading branch information
naotoj committed Jun 10, 2020
1 parent b03766f commit 54f7732c2ba163badd7db635768336da6376da85
Showing 1 changed file with 4 additions and 1 deletion.
@@ -26,14 +26,15 @@
* @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001440 8008577
* 8010666 8013086 8013233 8013903 8015960 8028771 8054482 8062006
* 8150432 8215913 8220227 8228465 8232871 8232860 8236495 8245241
* 8246721
* @summary tests for "java.locale.providers" system property
* @library /test/lib
* @build LocaleProviders
* providersrc.spi.src.tznp
* providersrc.spi.src.tznp8013086
* @modules java.base/sun.util.locale
* java.base/sun.util.locale.provider
* @run main LocaleProvidersRun
* @run main/othervm -Djdk.lang.Process.allowAmbiguousCommands=false LocaleProvidersRun
*/

import java.util.Locale;
@@ -164,6 +165,8 @@ public static void main(String[] args) throws Throwable {
testRun("HOST", "bug8232860Test", "", "", "");

//testing 8245241 fix.
//jdk.lang.Process.allowAmbiguousCommands=false is needed for properly escaping
//double quotes in the string argument.
testRun("FOO", "bug8245241Test",
"Invalid locale provider adapter \"FOO\" ignored.", "", "");
}

0 comments on commit 54f7732

Please sign in to comment.