|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2010, 2023, 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 |
| 28 | + * @bug 6994753 7123582 8305950 |
29 | 29 | * @summary tests -XshowSettings options
|
30 | 30 | * @modules jdk.compiler
|
31 | 31 | * jdk.zipfs
|
@@ -69,11 +69,13 @@ static void checkNotContains(TestResult tr, String str) {
|
69 | 69 | private static final String LOCALE_SETTINGS = "Locale settings:";
|
70 | 70 | private static final String SYSTEM_SETTINGS = "Operating System Metrics:";
|
71 | 71 | private static final String STACKSIZE_SETTINGS = "Stack Size:";
|
| 72 | + private static final String TZDATA_SETTINGS = "tzdata version"; |
72 | 73 |
|
73 | 74 | static void containsAllOptions(TestResult tr) {
|
74 | 75 | checkContains(tr, VM_SETTINGS);
|
75 | 76 | checkContains(tr, PROP_SETTINGS);
|
76 | 77 | checkContains(tr, LOCALE_SETTINGS);
|
| 78 | + checkContains(tr, TZDATA_SETTINGS); |
77 | 79 | if (System.getProperty("os.name").contains("Linux")) {
|
78 | 80 | checkContains(tr, SYSTEM_SETTINGS);
|
79 | 81 | }
|
@@ -139,6 +141,7 @@ static void runTestOptionLocale() throws IOException {
|
139 | 141 | checkNotContains(tr, VM_SETTINGS);
|
140 | 142 | checkNotContains(tr, PROP_SETTINGS);
|
141 | 143 | checkContains(tr, LOCALE_SETTINGS);
|
| 144 | + checkContains(tr, TZDATA_SETTINGS); |
142 | 145 | }
|
143 | 146 |
|
144 | 147 | static void runTestOptionSystem() throws IOException {
|
|
0 commit comments