Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/ShareClassesCMLTests-4.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 180-a to Test 188-c: 53 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="UTILITIES_PROGRAM" value="com.ibm.j9.sharedCacheAPI.tests.SharedUtilsTest"/>
36
<variable name="UTILITIES_CP" value="-cp $JVM_TEST_ROOT$$PATHSEP$functional$PATHSEP$VM_Test$PATHSEP$VM_Test.jar"/>
37
<variable name="UTILITIES_CACHE" value="-Xshareclasses:name=ShareClassesUtilities"/>
38
<variable name="JAVAC_DIR" value="$JAVA_HOME$$PATHSEP$bin"/>
39
<variable name="CACHE_DIR" value="cacheDir=."/>
40
41
<variable name="BOOTCLASSPATH" value="-Xbootclasspath/p:.$PATHSEP$Utils$CPDL$."/>
42
<variable name="currentMode" value="$mode204$"/>
43
<variable name="XXShareClassesEnableBCI" value="-XX:ShareClassesEnableBCI"/>
44
45
<variable name="CP_HANOI" value="-cp $UTILSJAR$" />
46
<variable name="BOOTCP_HANOI" value="-Xbootclasspath/a:$UTILSJAR$" />
47
<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />
48
<variable name="CLASS_HANOI" value="org/openj9/test/ivj/Hanoi" />
49
<variable name="BOOTSTRAP_CLASS" value="java/lang/Object" />
50
51
<variable name="AGENT_NOCLASSMODIFICATION" value="-agentlib:jvmtitest=test:ecflh001,args:noModify" />
52
<variable name="AGENT_RETRANSFORM" value="-agentlib:jvmtitest=test:rtc001" />
53
54
<variable name="DUMPFILE" value="shrcmltest" />
55
<variable name="SYSDUMP" value="-Xdump:system:file=$DUMPFILE$.dmp" />
56
<variable name="JAVADUMP" value="-Xdump:java:file=$DUMPFILE$.txt" />
57
<variable name="SNAPDUMP" value="-Xdump:snap:file=$DUMPFILE$.trc" />
58
<!-- Override -Xdump option on z/OS -->
59
<variable name="SYSDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP" platforms="zos.*" />
60
61
<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />
62
<variable name="WINDOWS_PLATFORMS" value="win.*" />
63
64
<!--
65
Following variable specifies cache directory to be used by tests for 'cacheDirPerm' sub-option.
66
Since 'cacheDirPerm' sub-option is not applicable on Windows, we can use current dir as cache dir.
67
-->
68
<variable name="CACHE_DIR_FOR_PERM_TEST" value="/tmp/ShareClassesCMLTestDir" platforms="$NON_WINDOWS_PLATFORMS$" />
69
<variable name="CACHE_DIR_FOR_PERM_TEST" value="." platforms="$WINDOWS_PLATFORMS$" />
70
71
<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>
72
73
<echo value=" "/>
74
<echo value="#######################################################"/>
75
<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>
76
<echo value="#######################################################"/>
77
<echo value=" "/>
78
79
<!--
80
Note:
81
Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.
82
These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.
83
84
The string 'corrupt' is checked because it can appear several messages like below.
85
JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.
86
JVMDUMP013I Processed dump event "corruptcache", detail "".
87
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.
88
-->
89
90
<test id="Start : Cleanup: persistent" timeout="600" runPath=".">
91
<command>$JAVA_EXE$ $currentMode$,destroy</command>
92
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
93
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
94
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
95
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
96
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
97
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
98
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
99
</test>
100
101
102
<test id="Start: Cleanup: nonpersistent" timeout="600" runPath=".">
103
<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>
104
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
105
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
106
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
107
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
108
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
109
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
110
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
111
</test>
112
<!--
113
Note: Tests 180(a-h) validate following scenario:
114
When running with -Xshareclasses:enableBCI, verify that intermediate class data is present for
115
bootstrap/non-bootstrap classes stored in cache, whether a JVMTI agent is being used or not.
116
-->
117
118
<!-- Remove stale dumps, if any. Test 180-a is going to create new dumps. -->
119
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
120
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
121
122
<test id="Test 180-a: Create a system dump by using a shared cache with enableBCI option and with a JVMTI agent" timeout="600" runPath=".">
123
<command>$JAVA_EXE$ -Xmx4m $SYSDUMP$,events=vmstop $currentMode$,reset,enableBCI $AGENT_NOCLASSMODIFICATION$ $CP_HANOI$ $PROGRAM_HANOI$</command>
124
<output type="success" regex="no">Moved disk 0 to 1</output>
125
<output type="required" regex="no" >System dump written</output>
126
<!-- check for unexpected core dumps -->
127
<output type="failure" regex="no">0001.dmp</output>
128
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
129
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
130
</test>
131
132
<test id="Test 180-b: Make sure system dump exists." timeout="600" runPath=".">
133
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
134
<arg>-c</arg>
135
<arg>echo $$LOGNAME</arg>
136
</exec>
137
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$.dmp" platforms="zos_390-64.*" />
138
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$.dmp" platforms="zos_390-31.*" />
139
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
140
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
141
<command>ls</command>
142
<output type="success" caseSensitive="no" regex="no">$DUMPFILE$.dmp</output>
143
</test>
144
145
<test id="Test 180-c: Verify that Intermediate Class Data is present for non-bootstrap class" timeout="600" runPath=".">
146
<command command="$JDMPVIEW_EXE$">
147
<arg>-core $DUMPFILE$.dmp</arg>
148
<input>!dumpromclass name:$CLASS_HANOI$</input>
149
<input>quit</input>
150
</command>
151
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
152
<output type="failure" regex="no">no shared cache</output>
153
<output type="failure" regex="no">unable to read</output>
154
<output type="failure" regex="no">could not read</output>
155
<output type="failure" regex="no">dump event</output>
156
<output type="failure" regex="no">DDRInteractiveCommandException</output>
157
</test>
158
159
<test id="Test 180-d: Verify that Intermediate Class Data is present for bootstrap class" timeout="600" runPath=".">
160
<command command="$JDMPVIEW_EXE$">
161
<arg>-core $DUMPFILE$.dmp</arg>
162
<input>!dumpromclass name:$BOOTSTRAP_CLASS$</input>
163
<input>quit</input>
164
</command>
165
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
166
<output type="failure" regex="no">no shared cache</output>
167
<output type="failure" regex="no">unable to read</output>
168
<output type="failure" regex="no">could not read</output>
169
<output type="failure" regex="no">dump event</output>
170
<output type="failure" regex="no">DDRInteractiveCommandException</output>
171
</test>
172
173
<exec command="rm -f $DUMPFILE$.dmp" quiet="false" />
174
175
<!-- Remove stale dumps, if any. Test 180-e is going to create new dumps. -->
176
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
177
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
178
179
<test id="Test 180-e: Create a system dump by using a shared cache with enableBCI option and without a JVMTI agent" timeout="600" runPath=".">
180
<command>$JAVA_EXE$ -Xmx4m $SYSDUMP$,events=vmstop $currentMode$,reset,enableBCI $CP_HANOI$ $PROGRAM_HANOI$</command>
181
<output type="success" regex="no">Moved disk 0 to 1</output>
182
<output type="required" regex="no">System dump written</output>
183
<!-- check for unexpected core dumps -->
184
<output regex="no" type="failure">0001.dmp</output>
185
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
186
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
187
</test>
188
189
<test id="Test 180-f: Make sure system dump exists." timeout="600" runPath=".">
190
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
191
<arg>-c</arg>
192
<arg>echo $$LOGNAME</arg>
193
</exec>
194
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$.dmp" platforms="zos_390-64.*" />
195
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$.dmp" platforms="zos_390-31.*" />
196
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
197
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
198
<command>ls</command>
199
<output type="success" caseSensitive="no" regex="no">$DUMPFILE$.dmp</output>
200
</test>
201
202
<test id="Test 180-g: Verify that Intermediate Class Data is present for non-bootstrap class" timeout="600" runPath=".">
203
<command command="$JDMPVIEW_EXE$">
204
<arg>-core $DUMPFILE$.dmp</arg>
205
<input>!dumpromclass name:$CLASS_HANOI$</input>
206
<input>quit</input>
207
</command>
208
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
209
<output type="failure" regex="no">no shared cache</output>
210
<output type="failure" regex="no">unable to read</output>
211
<output type="failure" regex="no">could not read</output>
212
<output type="failure" regex="no">dump event</output>
213
<output type="failure" regex="no">DDRInteractiveCommandException</output>
214
</test>
215
216
<test id="Test 180-h: Verify that Intermediate Class Data is present for bootstrap class" timeout="600" runPath=".">
217
<command command="$JDMPVIEW_EXE$">
218
<arg>-core $DUMPFILE$.dmp</arg>
219
<input>!dumpromclass name:$BOOTSTRAP_CLASS$</input>
220
<input>quit</input>
221
</command>
222
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
223
<output type="failure" regex="no">no shared cache</output>
224
<output type="failure" regex="no">unable to read</output>
225
<output type="failure" regex="no">could not read</output>
226
<output type="failure" regex="no">dump event</output>
227
<output type="failure" regex="no">DDRInteractiveCommandException</output>
228
</test>
229
230
<exec command="rm -f $DUMPFILE$.dmp" quiet="false" />
231
232
<!--
233
Note: Tests 181(a-d) validate following scenario:
234
When running with -Xshareclasses:enableBCI, if for some reason, we fail to store ROMClass in the cache,
235
and retransformation is enabled, then the ROMClass should contain intermediate class data.
236
-->
237
<test id="Test 181-a: Create a shared cache with enableBCI option" timeout="600" runPath=".">
238
<command>$JAVA_EXE$ $currentMode$,reset,enableBCI -version</command>
239
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
240
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
241
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
242
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
243
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
244
</test>
245
246
<!-- Remove stale dumps, if any. Test 181-b is going to create new dumps. -->
247
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
248
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
249
250
<test id="Test 181-b: Create a system dump by using previously created cache in read only mode with a JVMTI agent that has retransformation enabled" timeout="600" runPath=".">
251
<command>$JAVA_EXE$ -Xmx4m $SYSDUMP$,events=vmstop $currentMode$,enableBCI,readonly $AGENT_RETRANSFORM$ $CP_HANOI$ $PROGRAM_HANOI$</command>
252
<output type="success" regex="no">Moved disk 0 to 1</output>
253
<output type="required" regex="no">System dump written</output>
254
<!-- check for unexpected core dumps -->
255
<output regex="no" type="failure">0001.dmp</output>
256
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
257
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
258
</test>
259
260
<test id="Test 181-c: Make sure system dump exists." timeout="600" runPath=".">
261
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
262
<arg>-c</arg>
263
<arg>echo $$LOGNAME</arg>
264
</exec>
265
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$.dmp" platforms="zos_390-64.*" />
266
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$.dmp" platforms="zos_390-31.*" />
267
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
268
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
269
<command>ls</command>
270
<output type="success" caseSensitive="no" regex="no">$DUMPFILE$.dmp</output>
271
</test>
272
273
<test id="Test 181-d: Verify that Intermediate Class Data is present" timeout="600" runPath=".">
274
<command command="$JDMPVIEW_EXE$">
275
<arg>-core $DUMPFILE$.dmp</arg>
276
<input>!dumpromclass name:$CLASS_HANOI$</input>
277
<input>quit</input>
278
</command>
279
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
280
<output type="failure" regex="no">no shared cache</output>
281
<output type="failure" regex="no">unable to read</output>
282
<output type="failure" regex="no">could not read</output>
283
<output type="failure" regex="no">dump event</output>
284
<output type="failure" regex="no">DDRInteractiveCommandException</output>
285
</test>
286
287
<exec command="rm -f $DUMPFILE$.dmp" quiet="false" />
288
289
<!--
290
Note: Tests 182(a-d) validate following scenario:
291
When running with -Xshareclasses:enableBCI, if for some reason, we fail to store ROMClass in the cache,
292
and retransformation is disabled, then the ROMClass should still contain intermediate class data.
293
-->
294
<test id="Test 182-a: Create a shared cache with enableBCI option" timeout="600" runPath=".">
295
<command>$JAVA_EXE$ $currentMode$,reset,enableBCI -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
<!-- Remove stale dumps on z/OS, if any. Test 182-b is going to create new dumps. -->
304
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
305
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
306
307
<test id="Test 182-b: Create a system dump using previously created cache in read only mode with a JVMTI agent that has retransformation disabled" timeout="600" runPath=".">
308
<command>$JAVA_EXE$ -Xmx4m $SYSDUMP$,events=vmstop $currentMode$,enableBCI,readonly $AGENT_NOCLASSMODIFICATION$ $CP_HANOI$ $PROGRAM_HANOI$</command>
309
<output type="success" regex="no">Moved disk 0 to 1</output>
310
<output type="required" regex="no">System dump written</output>
311
<!-- check for unexpected core dumps -->
312
<output type="failure" regex="no">0001.dmp</output>
313
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
314
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
315
</test>
316
317
<test id="Test 182-c: Make sure system dump exists." timeout="600" runPath=".">
318
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
319
<arg>-c</arg>
320
<arg>echo $$LOGNAME</arg>
321
</exec>
322
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$.dmp" platforms="zos_390-64.*" />
323
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$.dmp" platforms="zos_390-31.*" />
324
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
325
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
326
<command>ls</command>
327
<output type="success" caseSensitive="no" regex="no">$DUMPFILE$.dmp</output>
328
</test>
329
330
<test id="Test 182-d: Verify that Intermediate Class Data is present" timeout="600" runPath=".">
331
<command command="$JDMPVIEW_EXE$">
332
<arg>-core $DUMPFILE$.dmp</arg>
333
<input>!dumpromclass name:$CLASS_HANOI$</input>
334
<input>quit</input>
335
</command>
336
<output type="success" regex="yes" javaUtilPattern="yes" showMatch="yes">Intermediate Class Data \([^0][0-9]* bytes\): [^0][0-9a-fA-F]*</output>
337
<output type="failure" regex="no">no shared cache</output>
338
<output type="failure" regex="no">unable to read</output>
339
<output type="failure" regex="no">could not read</output>
340
<output type="failure" regex="no">dump event</output>
341
<output type="failure" regex="no">DDRInteractiveCommandException</output>
342
</test>
343
344
<exec command="rm -f $DUMPFILE$.dmp" quiet="false" />
345
346
<!-- Tests 183a-f Verify printStats and javacore output when enableBCI sub-option is used. -->
347
348
<test id="Test 183-a: Create a cache and javacore without enableBCI option" timeout="600" runPath=".">
349
<command>$JAVA_EXE$ -Xdump:java:events=vmstop,file=javacore.txt $currentMode$,reset -version</command>
350
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
351
<output type="required" caseSensitive="yes" regex="no">Processed dump event</output>
352
<output type="required" caseSensitive="yes" regex="no">javacore.txt</output>
353
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
354
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
355
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
356
</test>
357
358
<test id="Test 183-b: Ensure BCI Enabled is true" timeout="600" runPath=".">
359
<command>cat javacore.txt</command>
360
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">BCI Enabled[\s]*= true</output>
361
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes" showMatch="yes">BCI Enabled[\s]*= false</output>
362
</test>
363
364
<test id="Test 183-c: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">
365
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
366
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
367
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
368
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
369
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
370
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
371
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
372
</test>
373
374
<exec command="rm -f javacore.txt" quiet="false"/>
375
376
<test id="Test 183-d: Create a cache and javacore with enableBCI option" timeout="600" runPath=".">
377
<command>$JAVA_EXE$ -Xdump:java:events=vmstop,file=javacore.txt $currentMode$,reset,enableBCI -version</command>
378
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
379
<output type="required" caseSensitive="yes" regex="no">Processed dump event</output>
380
<output type="required" caseSensitive="yes" regex="no">javacore.txt</output>
381
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
382
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
383
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
384
</test>
385
386
<test id="Test 183-e: Ensure BCI Enabled is true in generated javacore" timeout="600" runPath=".">
387
<command>cat javacore.txt</command>
388
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">BCI Enabled[\s]*= true</output>
389
<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes" showMatch="yes">BCI Enabled[\s]*= false</output>
390
</test>
391
392
<test id="Test 183-f: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">
393
<command>$JAVA_EXE$ $currentMode$,printStats -version</command>
394
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
395
<output type="failure" 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
<exec command="rm -f javacore.txt" quiet="false"/>
403
404
<!-- Tests 184a-m verify that shared class utility options like printStats, destroy, destroyAll work even when incompatible options are present.
405
Right now enableBCI and cacheRetransformed are treated as incompatible options.
406
-->
407
<test id="Test 184-a: Create a cache without enableBCI sub-option" timeout="600" runPath=".">
408
<command>$JAVA_EXE$ $currentMode$,reset -version</command>
409
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
410
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
411
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
412
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
413
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
414
</test>
415
416
<test id="Test 184-b: Run 'printStats' on existing cache with incompatible options specified at the end in the option list" timeout="600" runPath=".">
417
<command>$JAVA_EXE$ $currentMode$,printStats,enableBCI,cacheRetransformed</command>
418
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
419
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
420
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
421
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
422
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
423
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
424
</test>
425
426
<test id="Test 184-c: Run 'printStats' on existing cache with incompatible options specified before 'printStats' in the option list" timeout="600" runPath=".">
427
<command>$JAVA_EXE$ $currentMode$,enableBCI,cacheRetransformed,printStats</command>
428
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
429
<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>
430
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
431
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
432
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
433
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
434
</test>
435
436
<test id="Test 184-d: Run 'listAllCaches' with incompatible options specified at the end in the option list" timeout="600" runPath=".">
437
<command>$JAVA_EXE$ $currentMode$,listAllCaches,enableBCI,cacheRetransformed</command>
438
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
439
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
440
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
441
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
442
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
443
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
444
</test>
445
446
<test id="Test 184-e: Run 'listAllCaches' with incompatible options specified before 'listAllCaches' in the option list" timeout="600" runPath=".">
447
<command>$JAVA_EXE$ $currentMode$,enableBCI,cacheRetransformed,listAllCaches</command>
448
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>
449
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>
450
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
451
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
452
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
453
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
454
</test>
455
456
<test id="Test 184-f: Run 'destroy' on existing cache with incompatible options specified at the end in the option list" timeout="600" runPath=".">
457
<command>$JAVA_EXE$ $currentMode$,destroy,enableBCI,cacheRetransformed</command>
458
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
459
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
460
461
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
462
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
463
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
464
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
465
</test>
466
467
<test id="Test 184-g: Create a cache without enableBCI sub-option" timeout="600" runPath=".">
468
<command>$JAVA_EXE$ $currentMode$,reset -version</command>
469
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
470
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
471
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
472
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
473
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
474
</test>
475
476
<test id="Test 184-h: Run 'destroy' on existing cache with incompatible options specified before 'destroy' in the option list" timeout="600" runPath=".">
477
<command>$JAVA_EXE$ $currentMode$,enableBCI,cacheRetransformed,destroy</command>
478
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
479
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
480
481
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
482
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
483
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
484
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
485
</test>
486
487
<test id="Test 184-i: Create a cache without enableBCI sub-option" timeout="600" runPath=".">
488
<command>$JAVA_EXE$ $currentMode$,reset -version</command>
489
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
490
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
491
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
492
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
493
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
494
</test>
495
496
<test id="Test 184-j: Verify that using reset with incompatible options fails" timeout="600" runPath=".">
497
<command>$JAVA_EXE$ $currentMode$,reset,enableBCI,cacheRetransformed -version</command>
498
<output type="success" caseSensitive="yes" regex="no">JVMSHRC595E Command-line options "enableBCI" and "cacheRetransformed" are incompatible</output>
499
<output type="required" caseSensitive="yes" regex="no">JVMJ9VM015W Initialization error</output>
500
501
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
502
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
503
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
504
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
505
</test>
506
507
<test id="Test 184-k: Ensure previous test did not destroy the cache" timeout="600" runPath=".">
508
<command>$JAVA_EXE$ $currentMode$,printStats</command>
509
<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>
510
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
511
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
512
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
513
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
514
</test>
515
516
<test id="Test 184-l: Create a cache with enableBCI option" timeout="600" runPath=".">
517
<command>$JAVA_EXE$ $currentMode$,reset,enableBCI -version</command>
518
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
519
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
520
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
521
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
522
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
523
</test>
524
525
<test id="Test 184-m: Try to reset a BCI enabled cache with cacheRetransformed option" timeout="600" runPath=".">
526
<command>$JAVA_EXE$ $currentMode$,reset,cacheRetransformed -version</command>
527
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
528
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
529
<output type="required" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
530
531
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
532
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
533
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
534
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
535
</test>
536
537
<!-- Tests 185a-f checks that "cacheRetransformed" is incompatible with "enableBCI" sub-option -->
538
539
<test id="Test 185-a: Destroy any existing cache" timeout="600" runPath=".">
540
<command>$JAVA_EXE$ $currentMode$,destroy -version</command>
541
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
542
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
543
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
544
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
545
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
546
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
547
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
548
</test>
549
550
<test id="Test 185-b: Verify that cacheRetransformed is incompatible with enableBCI sub-option" timeout="600" runPath=".">
551
<command>$JAVA_EXE$ $currentMode$,enableBCI,cacheRetransformed -version</command>
552
<output type="success" caseSensitive="yes" regex="no">JVMSHRC595E Command-line options "enableBCI" and "cacheRetransformed" are incompatible</output>
553
<output type="required" caseSensitive="yes" regex="no">JVMJ9VM015W Initialization error</output>
554
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
555
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
556
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
557
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
558
</test>
559
560
<test id="Test 185-c: Verify that using cacheRetransformed and enableBCI with non-fatal sub-option does not fail" timeout="600" runPath=".">
561
<command>$JAVA_EXE$ $currentMode$,enableBCI,cacheRetransformed,nonfatal -version</command>
562
<output type="success" caseSensitive="yes" regex="no">JVMSHRC595E Command-line options "enableBCI" and "cacheRetransformed" are incompatible</output>
563
<output type="required" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
564
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
565
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
566
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
567
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
568
</test>
569
570
<test id="Test 185-d: Create a cache with enableBCI option" timeout="600" runPath=".">
571
<command>$JAVA_EXE$ $currentMode$,enableBCI -version</command>
572
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
573
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
574
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
575
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
576
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
577
</test>
578
579
<test id="Test 185-e: Verify that using cacheRetransformed sub-option is incompatible with BCI enabled cache" timeout="600" runPath=".">
580
<command>$JAVA_EXE$ $currentMode$,cacheRetransformed -version</command>
581
<output type="success" caseSensitive="yes" regex="no">JVMSHRC637E The -Xshareclasses:cacheRetransformed sub-option is incompatible with an existing BCI enabled shared cache.</output>
582
<output type="required" caseSensitive="yes" regex="no">JVMJ9VM015W Initialization error</output>
583
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
584
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
585
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
586
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
587
</test>
588
589
<test id="Test 185-f: Verify that using cacheRetransformed and nonfatal sub-options with a BCI enabled cache does not fail" timeout="600" runPath=".">
590
<command>$JAVA_EXE$ $currentMode$,cacheRetransformed,nonfatal -version</command>
591
<output type="success" caseSensitive="yes" regex="no">JVMSHRC637E The -Xshareclasses:cacheRetransformed sub-option is incompatible with an existing BCI enabled shared cache.</output>
592
<output type="required" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
593
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
594
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
595
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
596
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
597
</test>
598
599
<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$" />
600
601
<test id="Test 186-a: Test for valid value of 'cacheDirPerm' sub-option" timeout="600" runPath=".">
602
<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=0744 -version</command>
603
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
604
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
605
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
606
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
607
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
608
</test>
609
610
<test id="Test 186-b: Verify that cache can be re-used" timeout="600" runPath=".">
611
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$ -version</command>
612
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
613
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
614
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
615
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
616
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
617
</test>
618
619
<test id="Test 186-c: Cleanup the cache" timeout="600" runPath=".">
620
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,destroy</command>
621
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
622
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
623
624
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
625
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
626
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
627
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
628
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
629
</test>
630
631
<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$"/>
632
633
<test id="Test 187-a: Test for valid value of 'cacheDirPerm' sub-option with sticky bit on" timeout="600" runPath=".">
634
<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=1744 -version</command>
635
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
636
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
637
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
638
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
639
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
640
</test>
641
642
<test id="Test 187-b: Verify that cache can be re-used" timeout="600" runPath=".">
643
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$ -version</command>
644
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
645
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
646
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
647
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
648
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
649
</test>
650
651
<test id="Test 187-c: Cleanup the cache" timeout="600" runPath=".">
652
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,destroy</command>
653
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
654
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
655
656
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
657
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
658
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
659
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
660
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
661
</test>
662
663
<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$"/>
664
665
<test id="Test 188-a: Test for special value of 'cacheDirPerm' sub-option" timeout="600" runPath=".">
666
<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=0000 -version</command>
667
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
668
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
669
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
670
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
671
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
672
</test>
673
674
<test id="Test 188-b: Verify that cache can be re-used" timeout="600" runPath=".">
675
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$ -version</command>
676
<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>
677
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
678
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
679
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
680
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
681
</test>
682
683
<test id="Test 188-c: Cleanup the cache" timeout="600" runPath=".">
684
<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,destroy</command>
685
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
686
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
687
688
<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>
689
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
690
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
691
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
692
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
693
</test>
694
695
<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$" />
696
697
<test id="Verify whether VM successfully runs in read-only shared cache with testBadBuildID and nonfatal option specified" timeout="600" runPath=".">
698
<command>$JAVA_EXE$ -Xint -Xshareclasses:testBadBuildID,verbose,readonly,nonfatal -version</command>
699
<output type="required" caseSensitive="yes" regex="no">Continue without using it as -Xshareclasses:nonfatal is specified</output>
700
<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">(Semeru|OpenJDK|Java\(TM\) SE) Runtime</output>
701
702
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
703
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
704
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
705
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
706
<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>
707
<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>
708
</test>
709
710
<test id="At end destroy cache for cleanup" timeout="600" runPath=".">
711
<command>$JAVA_EXE$ $currentMode$,destroy</command>
712
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
713
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
714
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
715
716
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
717
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
718
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
719
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
720
<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>
721
<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>
722
</test>
723
724
<!--
725
***** IMPORTANT NOTE *****
726
The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.
727
-->
728
</suite>
729
730
731