1
1
/*
2
- * Copyright (c) 2010, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2010, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
/*
27
27
* @test
28
- * @bug 6994753 7123582 8305950 8281658 8310201
28
+ * @bug 6994753 7123582 8305950 8281658 8310201 8343804
29
29
* @summary tests -XshowSettings options
30
30
* @modules jdk.compiler
31
31
* jdk.zipfs
@@ -79,6 +79,7 @@ static void checkNotContains(TestResult tr, String str) {
79
79
private static final String BAD_SEC_OPTION_MSG = "Unrecognized security subcommand" ;
80
80
private static final String SYSTEM_SETTINGS = "Operating System Metrics:" ;
81
81
private static final String STACKSIZE_SETTINGS = "Stack Size:" ;
82
+ private static final String TIMEZONE_SETTINGS = "default timezone" ;
82
83
private static final String TZDATA_SETTINGS = "tzdata version" ;
83
84
84
85
static void containsAllOptions (TestResult tr ) {
@@ -92,6 +93,7 @@ static void containsAllOptions(TestResult tr) {
92
93
checkContains (tr , SEC_SUMMARY_PROPS_SETTINGS );
93
94
checkContains (tr , SEC_PROVIDER_SETTINGS );
94
95
checkContains (tr , SEC_TLS_SETTINGS );
96
+ checkContains (tr , TIMEZONE_SETTINGS );
95
97
checkContains (tr , TZDATA_SETTINGS );
96
98
if (System .getProperty ("os.name" ).contains ("Linux" )) {
97
99
checkContains (tr , SYSTEM_SETTINGS );
@@ -160,6 +162,7 @@ static void runTestOptionLocale() throws IOException {
160
162
checkContains (tr , LOCALE_SETTINGS );
161
163
checkContains (tr , AVAILABLE_LOCALES );
162
164
checkNotContains (tr , LOCALE_SUMMARY_SETTINGS );
165
+ checkContains (tr , TIMEZONE_SETTINGS );
163
166
checkContains (tr , TZDATA_SETTINGS );
164
167
}
165
168
0 commit comments