--- old/test/java/util/Locale/LocaleProviders.sh Mon Sep 10 15:33:11 2012 +++ new/test/java/util/Locale/LocaleProviders.sh Mon Sep 10 15:33:10 2012 @@ -23,7 +23,7 @@ #!/bin/sh # # @test -# @bug 6336885 +# @bug 6336885 7196799 # @summary tests for "java.locale.providers" system property # @compile -XDignore.symbol.file LocaleProviders.java # @run shell/timeout=600 LocaleProviders.sh @@ -83,7 +83,7 @@ # testing HOST is selected for the default locale, if specified on Windows or MacOSX DEFLANG=en DEFCTRY=US -PREFLIST=HOST +PREFLIST=HOST,JRE case "$OS" in Windows_NT* ) WINVER=`uname -r` @@ -108,7 +108,7 @@ # testing HOST is NOT selected for the non-default locale, if specified DEFLANG=en DEFCTRY=US -PREFLIST=HOST +PREFLIST=HOST,JRE EXPECTED=JRE TESTLANG=en TESTCTRY=GB @@ -115,7 +115,7 @@ runTest # testing SPI is NOT selected, as there is none. -PREFLIST=SPI +PREFLIST=SPI,JRE EXPECTED=JRE TESTLANG=en TESTCTRY=US @@ -122,7 +122,7 @@ runTest # testing the order, variaton #1. This assumes en_GB DateFormat data are available both in JRE & CLDR -PREFLIST=CLDR +PREFLIST=CLDR,JRE EXPECTED=CLDR TESTLANG=en TESTCTRY=GB @@ -142,4 +142,11 @@ TESTCTRY=GB runTest +# testing the order, variaton #4 for the bug 7196799. CLDR's "zh" data should be used in "zh_CN" +PREFLIST=CLDR +EXPECTED=CLDR +TESTLANG=zh +TESTCTRY=CN +runTest + exit $result