Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/ShareClassesCMLTests-5.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3
<!--
4
Copyright (c) 2012, 2021 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
26
27
<!-- Test 189-a to Test 199-c: 76 tests -->
28
29
<suite id="Shared Classes CommandLineOptionTests Suite">
30
31
<!-- Our test modes for this suite -->
32
<variable name="mode204" value="-Xshareclasses:name=ShareClassesCMLTests"/>
33
34
<!-- Set variables up -->
35
<variable name="JAVAC_DIR" value="$JAVA_HOME$$PATHSEP$bin"/>
36
<variable name="CACHE_DIR" value="cacheDir=."/>
37
38
<variable name="BOOTCLASSPATH" value="-Xbootclasspath/a:.$PATHSEP$Utils$CPDL$."/>
39
<variable name="currentMode" value="$mode204$"/>
40
<variable name="XXShareClassesEnableBCI" value="-XX:ShareClassesEnableBCI"/>
41
42
<variable name="CP_HANOI" value="-cp $UTILSJAR$" />
43
<variable name="BOOTCP_HANOI" value="-Xbootclasspath/a:$UTILSJAR$" />
44
<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />
45
<variable name="CLASS_HANOI" value="org/openj9/test/ivj/Hanoi" />
46
<variable name="BOOTSTRAP_CLASS" value="java/lang/Object" />
47
48
<variable name="AGENT_NOCLASSMODIFICATION" value="-agentlib:jvmtitest=test:ecflh001,args:noModify" />
49
<variable name="AGENT_RETRANSFORM" value="-agentlib:jvmtitest=test:rtc001" />
50
51
<variable name="DUMPFILE" value="shrcmltest" />
52
<variable name="SYSDUMP" value="-Xdump:system:file=$DUMPFILE$.dmp" />
53
<variable name="JAVADUMP" value="-Xdump:java:file=$DUMPFILE$.txt" />
54
<variable name="SNAPDUMP" value="-Xdump:snap:file=$DUMPFILE$.trc" />
55
<!-- Override -Xdump option on z/OS -->
56
<variable name="SYSDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP" platforms="zos.*" />
57
58
<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />
59
<variable name="WINDOWS_PLATFORMS" value="win.*" />
60
61
<!--
62
Following variable specifies cache directory to be used by tests for 'cacheDirPerm' sub-option.
63
Since 'cacheDirPerm' sub-option is not applicable on Windows, we can use current dir as cache dir.
64
-->
65
<variable name="CACHE_DIR_FOR_PERM_TEST" value="/tmp/ShareClassesCMLTestDir" platforms="$NON_WINDOWS_PLATFORMS$" />
66
<variable name="CACHE_DIR_FOR_PERM_TEST" value="." platforms="$WINDOWS_PLATFORMS$" />
67
68
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
69
70
<echo value=" "/>
71
<echo value="#######################################################"/>
72
<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>
73
<echo value="#######################################################"/>
74
<echo value=" "/>
75
76
<!--
77
Note:
78
Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.
79
These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.
80
81
The string 'corrupt' is checked because it can appear several messages like below.
82
JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.
83
JVMDUMP013I Processed dump event "corruptcache", detail "".
84
JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.
85
-->
86
87
<test id="Start : Cleanup: persistent" timeout="600" runPath=".">
88
<command>$JAVA_EXE$ $currentMode$,destroy</command>
89
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
90
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
91
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
92
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
93
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
94
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
95
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
96
</test>
97
98
99
<test id="Start: Cleanup: nonpersistent" timeout="600" runPath=".">
100
<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>
101
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
102
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
103
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
104
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
105
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
106
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
107
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
108
</test>
109
110
<test id="Test 189-a: Test for special value of 'cacheDirPerm' sub-option with sticky bit on" timeout="600" runPath=".">
111
<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=1000 -version</command>
112
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
113
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
114
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
115
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
116
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
117
</test>
118
119
<test id="Test 189-b: Verify that cache can be re-used" timeout="600" runPath=".">
120
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$ -version</command>
121
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
122
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
123
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
124
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
125
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
126
</test>
127
128
<test id="Test 189-c: Cleanup the cache" timeout="600" runPath=".">
129
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,destroy</command>
130
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
131
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
132
133
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
134
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
135
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
136
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
137
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
138
</test>
139
140
<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$"/>
141
142
<test id="Test 190-a: Use 'cacheDirPerm' sub-option on existing directory" timeout="600" runPath=".">
143
<command>$JAVA_EXE$ $currentMode$,reset,$CACHE_DIR$,cacheDirPerm=0744 -version</command>
144
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
145
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
146
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
147
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
148
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
149
</test>
150
151
<test id="Test 190-b: Verify that cache can be re-used" timeout="600" runPath=".">
152
<command>$JAVA_EXE$ $currentMode$,$CACHE_DIR$ -version</command>
153
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
154
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
155
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
156
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
157
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
158
</test>
159
160
<test id="Test 190-c: Cleanup the cache" timeout="600" runPath=".">
161
<command>$JAVA_EXE$ $currentMode$,$CACHE_DIR$,destroy</command>
162
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
163
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
164
165
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
166
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
167
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
168
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
169
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
170
</test>
171
172
<test id="Test 191: Use 'cacheDirPerm' sub-option on default cache directory" timeout="600" runPath=".">
173
<command>$JAVA_EXE$ $currentMode$,reset,cacheDirPerm=0744 -version</command>
174
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
175
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
176
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
177
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
178
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
179
</test>
180
181
<!-- Following test behaves differently on windows and unix-like platforms -->
182
<test id="Test 192: Test for invalid value of 'cacheDirPerm' sub-option" timeout="600" runPath=".">
183
<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=0577 -version</command>
184
<output type="success" caseSensitive="yes" regex="no" platforms="$NON_WINDOWS_PLATFORMS$">Invalid setting for cacheDirPerm option</output>
185
<output type="required" caseSensitive="yes" regex="no" platforms="$NON_WINDOWS_PLATFORMS$">Initialization error</output>
186
<output type="failure" caseSensitive="no" regex="yes" platforms="$NON_WINDOWS_PLATFORMS$" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
187
188
<output type="success" caseSensitive="no" regex="yes" platforms="$WINDOWS_PLATFORMS$" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
189
190
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
191
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
192
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
193
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
194
</test>
195
196
<test id="Test 193: Code coverage on Xshareclasses:doExtraAreaChecks" timeout="600" runPath=".">
197
<command>$JAVA_EXE$ $currentMode$,reset,enablebci,doExtraAreaChecks -version</command>
198
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
199
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
200
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
201
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
202
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
203
</test>
204
205
<!-- Tests 194a-k verify behavior of -XX:ShareClassesEnableBCI with other -Xshareclasses sub-options -->
206
207
<test id="Test 194-a: Test -Xshareclasses followed by -XX:ShareClassesEnableBCI" timeout="600" runPath=".">
208
<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesEnableBCI$ -version</command>
209
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
210
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
211
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
212
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
213
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
214
</test>
215
216
<test id="Test 194-b: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">
217
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
218
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
219
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
220
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
221
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
222
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
223
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
224
</test>
225
226
<test id="Test 194-c: Test -XX:ShareClassesEnableBCI followed by -Xshareclasses" timeout="600" runPath=".">
227
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,reset -version</command>
228
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
229
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
230
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
231
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
232
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
233
</test>
234
235
<test id="Test 194-d: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">
236
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
237
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
238
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
239
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
240
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
241
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
242
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
243
</test>
244
245
<test id="Test 194-e: Destroy any existing cache" timeout="600" runPath=".">
246
<command>$JAVA_EXE$ $currentMode$,destroy</command>
247
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
248
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
249
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
250
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
251
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
252
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
253
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
254
</test>
255
256
<test id="Test 194-f: Try to use -XX:ShareClassesEnableBCI after -Xshareclasses:none to create a cache" timeout="600" runPath=".">
257
<command>$JAVA_EXE$ $currentMode$,none $XXShareClassesEnableBCI$ -version</command>
258
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
259
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
260
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
261
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
262
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
263
</test>
264
265
<test id="Test 194-g: Verify that cache is not created by previous test" timeout="600" runPath=".">
266
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
267
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
268
<output type="failure" caseSensitive="no" regex="no">Current statistics</output>
269
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
270
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
271
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
272
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
273
</test>
274
275
<test id="Test 194-h: Try to use -XX:ShareClassesEnableBCI before -Xshareclasses:none to create a cache" timeout="600" runPath=".">
276
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,none -version</command>
277
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
278
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
279
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
280
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
281
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
282
</test>
283
284
<test id="Test 194-i: Verify that cache is not created by previous test" timeout="600" runPath=".">
285
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
286
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
287
<output type="failure" caseSensitive="no" regex="no">Current statistics</output>
288
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
289
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
290
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
291
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
292
</test>
293
294
<test id="Test 194-j: Try to use -XX:ShareClassesEnableBCI without -Xshareclasses to create a cache" timeout="600" runPath=".">
295
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ -version</command>
296
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
297
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
298
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
299
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
300
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
301
</test>
302
303
<test id="Test 194-k: Verify that cache is not created by previous test" timeout="600" runPath=".">
304
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
305
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
306
<output type="failure" caseSensitive="no" regex="no">Current statistics</output>
307
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
308
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
309
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
310
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
311
</test>
312
313
<!-- Tests 195a-p test the behavior of '-XX:ShareClassEnableBCI' on an existing cache that does not support BCI -->
314
315
<test id="Test 195-a: Create a cache without BCI support" timeout="600" runPath=".">
316
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>
317
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
318
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
319
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
320
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
321
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
322
</test>
323
324
<test id="Test 195-b: Ensure cache created without enableBCI option is not usable with -XX:ShareClassEnableBCI option" timeout="600" runPath=".">
325
<command>$JAVA_EXE$ $currentMode$ $XXShareClassesEnableBCI$ -version</command>
326
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Initialization error for library j9shr*</output>
327
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
328
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
329
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
330
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
331
</test>
332
333
<test id="Test 195-c: Verify that using '-XX:ShareClassesEnableBCI' with 'nonfatal' sub-option on an existing BCI disabled cache does not abort JVM" timeout="600" runPath=".">
334
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,nonfatal,verboseIO -version</command>
335
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
336
<output type="failure" caseSensitive="yes" regex="no">Found class</output>
337
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
338
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
339
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
340
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
341
</test>
342
343
<test id="Test 195-d: Run 'printStats' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">
344
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,printStats -version</command>
345
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
346
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
347
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
348
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
349
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
350
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
351
</test>
352
353
<test id="Test 195-e: Run 'printStats' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">
354
<command>$JAVA_EXE$ $currentMode$,printStats $XXShareClassesEnableBCI$ -version</command>
355
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
356
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
357
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
358
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
359
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
360
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
361
</test>
362
363
<test id="Test 195-f: Run 'listAllCaches' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">
364
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,listAllCaches -version</command>
365
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
366
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
367
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
368
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
369
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
370
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
371
</test>
372
373
<test id="Test 195-g: Run 'listAllCaches' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' sub-option specified after it" timeout="600" runPath=".">
374
<command>$JAVA_EXE$ $currentMode$,listAllCaches $XXShareClassesEnableBCI$ -version</command>
375
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
376
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
377
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
378
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
379
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
380
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
381
</test>
382
383
<test id="Test 195-h: Run 'destroy' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">
384
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,destroy</command>
385
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
386
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
387
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
388
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
389
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
390
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
391
</test>
392
393
<test id="Test 195-i: Create a cache without BCI support" timeout="600" runPath=".">
394
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>
395
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
396
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
397
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
398
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
399
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
400
</test>
401
402
<test id="Test 195-j: Run 'destroy' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">
403
<command>$JAVA_EXE$ $currentMode$,destroy $XXShareClassesEnableBCI$</command>
404
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
405
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
406
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
407
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
408
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
409
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
410
</test>
411
412
<test id="Test 195-k: Create a cache without BCI support" timeout="600" runPath=".">
413
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>
414
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
415
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
416
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
417
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
418
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
419
</test>
420
421
<test id="Test 195-l: Run 'reset' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">
422
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,reset -version</command>
423
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
424
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
425
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
426
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
427
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
428
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
429
</test>
430
431
<test id="Test 195-m: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">
432
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
433
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
434
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
435
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
436
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
437
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
438
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
439
</test>
440
441
<test id="Test 195-n: Create a cache without BCI support" timeout="600" runPath=".">
442
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>
443
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
444
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
445
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
446
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
447
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
448
</test>
449
450
<test id="Test 195-o: Run 'reset' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">
451
<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesEnableBCI$ -version</command>
452
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
453
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
454
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
455
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
456
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
457
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
458
</test>
459
460
<test id="Test 195-p: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">
461
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
462
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
463
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
464
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
465
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
466
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
467
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
468
</test>
469
470
<!-- Tests 196a-l verify behavior of -Xshareclasses:disableBCI -->
471
472
<test id="Test 196-a: Verify that -Xshareclasses:disableBCI overrides -XX:ShareClassesEnableBCI when specified before it" timeout="600" runPath=".">
473
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset $XXShareClassesEnableBCI$ -version</command>
474
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
475
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
476
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
477
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
478
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
479
</test>
480
481
<test id="Test 196-b: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
482
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
483
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
484
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
485
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
486
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
487
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
488
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
489
</test>
490
491
<test id="Test 196-c: Verify that -Xshareclasses:disableBCI overrides -XX:ShareClassesEnableBCI when specified after it" timeout="600" runPath=".">
492
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,disableBCI,reset -version</command>
493
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
494
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
495
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
496
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
497
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
498
</test>
499
500
<test id="Test 196-d: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
501
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
502
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
503
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
504
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
505
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
506
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
507
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
508
</test>
509
510
<test id="Test 196-e: Use -Xshareclasses:enableBCI,disableBCI to create a cache without BCI support" timeout="600" runPath=".">
511
<command>$JAVA_EXE$ $currentMode$,enableBCI,disableBCI,reset -version</command>
512
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
513
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
514
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
515
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
516
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
517
</test>
518
519
<test id="Test 196-f: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
520
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
521
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
522
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
523
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
524
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
525
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
526
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
527
</test>
528
529
<test id="Test 196-g: Use -Xshareclasses:disableBCI,enableBCI to create a cache with BCI support" timeout="600" runPath=".">
530
<command>$JAVA_EXE$ $currentMode$,disableBCI,enableBCI,reset -version</command>
531
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
532
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
533
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
534
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
535
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
536
</test>
537
538
<test id="Test 196-h: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">
539
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
540
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
541
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
542
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
543
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
544
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
545
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
546
</test>
547
548
<test id="Test 196-i: Create a BCI enabled cache with multiple BCI options" timeout="600" runPath=".">
549
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,disableBCI,enableBCI,reset -version</command>
550
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
551
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
552
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
553
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
554
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
555
</test>
556
557
<test id="Test 196-j: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">
558
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
559
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
560
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
561
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
562
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
563
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
564
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
565
</test>
566
567
<test id="Test 196-k: Create a BCI disabled cache with multiple BCI options" timeout="600" runPath=".">
568
<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,enableBCI,disableBCI,reset -version</command>
569
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
570
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
571
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
572
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
573
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
574
</test>
575
576
<test id="Test 196-l: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
577
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
578
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
579
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
580
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
581
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
582
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
583
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
584
</test>
585
586
<!-- Tests 197a-p test the behavior of 'disableBCI' on an existing cache that supports BCI -->
587
588
<test id="Test 197-a: Create a cache with BCI support" timeout="600" runPath=".">
589
<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>
590
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
591
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
592
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
593
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
594
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
595
</test>
596
597
<test id="Test 197-b: Try to use an existing BCI enabled cache with 'disableBCI' sub-option" timeout="600" runPath=".">
598
<command>$JAVA_EXE$ $currentMode$,disableBCI -version</command>
599
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Initialization error for library j9shr*</output>
600
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
601
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
602
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
603
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
604
</test>
605
606
<test id="Test 197-c: Verify that using 'disableBCI' with 'nonfatal' sub-option on an existing BCI enabled cache does not abort JVM" timeout="600" runPath=".">
607
<command>$JAVA_EXE$ $currentMode$,disableBCI,nonfatal,verboseIO -version</command>
608
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
609
<output type="failure" caseSensitive="yes" regex="no">Found class</output>
610
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
611
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
612
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
613
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
614
</test>
615
616
<test id="Test 197-d: Run 'printStats' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">
617
<command>$JAVA_EXE$ $currentMode$,disableBCI,printStats -version</command>
618
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
619
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
620
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
621
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
622
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
623
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
624
</test>
625
626
<test id="Test 197-e: Run 'printStats' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">
627
<command>$JAVA_EXE$ $currentMode$,printStats,disableBCI -version</command>
628
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
629
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
630
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
631
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
632
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
633
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
634
</test>
635
636
<test id="Test 197-f: Run 'listAllCaches' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">
637
<command>$JAVA_EXE$ $currentMode$,disableBCI,listAllCaches -version</command>
638
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
639
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
640
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
641
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
642
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
643
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
644
</test>
645
646
<test id="Test 197-g: Run 'listAllCaches' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">
647
<command>$JAVA_EXE$ $currentMode$,listAllCaches,disableBCI -version</command>
648
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
649
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
650
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
651
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
652
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
653
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
654
</test>
655
656
<test id="Test 197-h: Run 'destroy' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">
657
<command>$JAVA_EXE$ $currentMode$,disableBCI,destroy</command>
658
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
659
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
660
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
661
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
662
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
663
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
664
</test>
665
666
<test id="Test 197-i: Create a cache with BCI support" timeout="600" runPath=".">
667
<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>
668
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
669
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
670
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
671
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
672
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
673
</test>
674
675
<test id="Test 197-j: Run 'destroy' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">
676
<command>$JAVA_EXE$ $currentMode$,destroy,disableBCI</command>
677
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
678
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
679
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
680
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
681
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
682
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
683
</test>
684
685
<test id="Test 197-k: Create a cache with BCI support" timeout="600" runPath=".">
686
<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>
687
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
688
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
689
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
690
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
691
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
692
</test>
693
694
<test id="Test 197-l: Run 'reset' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">
695
<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>
696
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
697
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
698
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
699
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
700
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
701
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
702
</test>
703
704
<test id="Test 197-m: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
705
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
706
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
707
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
708
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
709
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
710
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
711
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
712
</test>
713
714
<test id="Test 197-n: Run 'reset' on an existing BCI disabled cache with 'enableBCI' sub-option specified before it" timeout="600" runPath=".">
715
<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>
716
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
717
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
718
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
719
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
720
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
721
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
722
</test>
723
724
<test id="Test 197-o: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">
725
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
726
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
727
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
728
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
729
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
730
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
731
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
732
</test>
733
734
<test id="Test 197-p: Create a cache with BCI support" timeout="600" runPath=".">
735
<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>
736
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
737
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
738
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
739
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
740
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
741
</test>
742
743
<test id="Test 197-q: Run 'reset' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">
744
<command>$JAVA_EXE$ $currentMode$,reset,disableBCI -version</command>
745
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
746
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
747
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
748
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
749
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
750
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
751
</test>
752
753
<test id="Test 197-r: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">
754
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
755
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>
756
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
757
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
758
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
759
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
760
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
761
</test>
762
763
<test id="Test 197-s: Run 'reset' on an existing BCI disabled cache with 'enableBCI' sub-option specified after it" timeout="600" runPath=".">
764
<command>$JAVA_EXE$ $currentMode$,reset,enableBCI -version</command>
765
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
766
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
767
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
768
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
769
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
770
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
771
</test>
772
773
<test id="Test 197-t: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">
774
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
775
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
776
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
777
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
778
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
779
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
780
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
781
</test>
782
783
<!-- Tests for CMVC 182368 and CMVC 188407.
784
There are two cases to be tested:
785
Case 1: Tests 198a-b.
786
Create a cache with a modification context i.e. with 'modified=<mod>' option.
787
Reuse it without modification context in read-only mode.
788
Case 2: Tests 199a-c.
789
Add a sample class C in the cache.
790
Add the classpath of C to boot classpath in the cache.
791
Reuse the cache in read-only mode to load C with classpath of C added to boot classpath.
792
-->
793
794
<test id="Test 198-a: Create a cache with modification context" timeout="600" runPath=".">
795
<command>$JAVA_EXE$ $currentMode$,modified=mod1,reset -version</command>
796
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
797
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
798
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
799
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
800
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
801
</test>
802
803
<test id="Test 198-b: Re-use previous cache without modification context in read-only mode" timeout="600" runPath=".">
804
<command>$JAVA_EXE$ $currentMode$,readonly -version</command>
805
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
806
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
807
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
808
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
809
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
810
</test>
811
812
<test id="Test 199-a: Create a cache with a sample program" timeout="600" runPath=".">
813
<command>$JAVA_EXE$ $currentMode$,reset -Xnolinenumbers $CP_HANOI$ $PROGRAM_HANOI$</command>
814
<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>
815
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
816
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
817
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
818
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
819
</test>
820
821
<test id="Test 199-b: Add classpath of sample program as boot classpath in the cache" timeout="600" runPath=".">
822
<command>$JAVA_EXE$ $BOOTCP_HANOI$ $currentMode$ -version</command>
823
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
824
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
825
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
826
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
827
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
828
</test>
829
830
<test id="Test 199-c: Re-use the cache as read-only to load sample program with its classpath added to boot classpath" timeout="600" runPath=".">
831
<command>$JAVA_EXE$ $BOOTCP_HANOI$ $currentMode$,readonly -Xnolinenumbers $PROGRAM_HANOI$</command>
832
<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>
833
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
834
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
835
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
836
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
837
</test>
838
839
<test id="At end destroy cache for cleanup" timeout="600" runPath=".">
840
<command>$JAVA_EXE$ $currentMode$,destroy</command>
841
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
842
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
843
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
844
845
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
846
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
847
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
848
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
849
<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>
850
<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>
851
</test>
852
853
<!--
854
***** IMPORTANT NOTE *****
855
The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.
856
-->
857
</suite>
858
859