25
25
26
26
/*
27
27
* @test
28
- * @bug 6994753 7123582 8305950 8281658
28
+ * @bug 6994753 7123582 8305950 8281658 8310201
29
29
* @summary tests -XshowSettings options
30
30
* @modules jdk.compiler
31
31
* jdk.zipfs
@@ -67,6 +67,9 @@ static void checkNotContains(TestResult tr, String str) {
67
67
private static final String VM_SETTINGS = "VM settings:" ;
68
68
private static final String PROP_SETTINGS = "Property settings:" ;
69
69
private static final String LOCALE_SETTINGS = "Locale settings:" ;
70
+ private static final String LOCALE_SUMMARY_SETTINGS =
71
+ "Locale settings summary:" ;
72
+ private static final String AVAILABLE_LOCALES = "available locales" ;
70
73
private static final String SEC_PROPS_SETTINGS = "Security properties:" ;
71
74
private static final String SEC_SUMMARY_PROPS_SETTINGS =
72
75
"Security settings summary:" ;
@@ -81,7 +84,9 @@ static void checkNotContains(TestResult tr, String str) {
81
84
static void containsAllOptions (TestResult tr ) {
82
85
checkContains (tr , VM_SETTINGS );
83
86
checkContains (tr , PROP_SETTINGS );
84
- checkContains (tr , LOCALE_SETTINGS );
87
+ checkNotContains (tr , LOCALE_SETTINGS );
88
+ checkNotContains (tr , AVAILABLE_LOCALES );
89
+ checkContains (tr , LOCALE_SUMMARY_SETTINGS );
85
90
// no verbose security settings unless "security" used
86
91
checkNotContains (tr , SEC_PROPS_SETTINGS );
87
92
checkContains (tr , SEC_SUMMARY_PROPS_SETTINGS );
@@ -153,6 +158,8 @@ static void runTestOptionLocale() throws IOException {
153
158
checkNotContains (tr , VM_SETTINGS );
154
159
checkNotContains (tr , PROP_SETTINGS );
155
160
checkContains (tr , LOCALE_SETTINGS );
161
+ checkContains (tr , AVAILABLE_LOCALES );
162
+ checkNotContains (tr , LOCALE_SUMMARY_SETTINGS );
156
163
checkContains (tr , TZDATA_SETTINGS );
157
164
}
158
165
0 commit comments