Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/testSCCMLSnapshot.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no"?>12<!--3Copyright (c) 2012, 2021 IBM Corp. and others45This program and the accompanying materials are made available under6the terms of the Eclipse Public License 2.0 which accompanies this7distribution and is available at https://www.eclipse.org/legal/epl-2.0/8or the Apache License, Version 2.0 which accompanies this distribution and9is available at https://www.apache.org/licenses/LICENSE-2.0.1011This Source Code may also be made available under the following12Secondary Licenses when the conditions for such availability set13forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14General Public License, version 2 with the GNU Classpath15Exception [1] and GNU General Public License, version 2 with the16OpenJDK Assembly Exception [2].1718[1] https://www.gnu.org/software/classpath/license.html19[2] http://openjdk.java.net/legal/assembly-exception.html2021SPDX-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-exception22-->2324<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">2526<!-- Test 1 to Test 18: 29 tests -->2728<suite id="Shared Classes CommandLineOptionTests Suite">2930<!-- Our test modes for this suite -->31<variable name="mode204" value="-Xshareclasses:name=ShareClassesCMLTests"/>3233<!-- Set variables up -->34<variable name="currentMode" value="$mode204$"/>3536<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>3738<echo value=" "/>39<echo value="#######################################################"/>40<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>41<echo value="#######################################################"/>42<echo value=" "/>4344<!--45Note:46Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.47These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.4849The string 'corrupt' is checked because it can appear several messages like below.50JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.51JVMDUMP013I Processed dump event "corruptcache", detail "".52JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.53-->5455<test id="Start : Cleanup: persistent" timeout="600" runPath=".">56<command>$JAVA_EXE$ $currentMode$,destroy</command>57<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>58<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>59<output type="success" caseSensitive="yes" regex="no">is destroyed</output>6061<output type="failure" caseSensitive="no" regex="no">error</output>62<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>63<output type="failure" caseSensitive="yes" regex="no">Exception:</output>64<output type="failure" caseSensitive="no" regex="no">corrupt</output>65<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>66</test>6768<test id="Start: Cleanup: nonpersistent" timeout="600" runPath=".">69<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>70<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>71<output type="success" caseSensitive="yes" regex="no">is destroyed</output>72<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>7374<output type="failure" caseSensitive="no" regex="no">error</output>75<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>76<output type="failure" caseSensitive="yes" regex="no">Exception:</output>77<output type="failure" caseSensitive="no" regex="no">corrupt</output>78<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>79</test>8081<test id="Test 1: Create a snapshot of the non-persistent cache that does not exist" timeout="600" runPath=".">82<command>$JAVA_EXE$ $currentMode$,nonpersistent,snapshotCache</command>83<output type="required" caseSensitive="yes" regex="no">Cache does not exist</output>84<output type="success" caseSensitive="yes" regex="no">Failed to create a snapshot of non-persistent shared cache "ShareClassesCMLTests"</output>85<output type="failure" caseSensitive="no" regex="no">error</output>86<output type="failure" caseSensitive="yes" regex="no">has been created</output>87<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>88<output type="failure" caseSensitive="yes" regex="no">Exception:</output>89<output type="failure" caseSensitive="no" regex="no">corrupt</output>90<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>91</test>9293<test id="Test 2s: Set up for test 2, test 3, test 4, test 5 and test 6, create a non-persistent cache" timeout="600" runPath=".">94<command>$JAVA_EXE$ $currentMode$,nonpersistent -version</command>95<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>96<output type="failure" caseSensitive="no" regex="no">error</output>97<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>98<output type="failure" caseSensitive="yes" regex="no">Exception:</output>99<output type="failure" caseSensitive="no" regex="no">corrupt</output>100<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>101</test>102103<test id="Test 2: Create a snapshot of the non-persistent cache" timeout="600" runPath=".">104<command>$JAVA_EXE$ $currentMode$,nonpersistent,snapshotCache</command>105<output type="success" caseSensitive="yes" regex="no">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>106<output type="failure" caseSensitive="yes" regex="no">Failed to create</output>107<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>108<output type="failure" caseSensitive="no" regex="no">error</output>109<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>110<output type="failure" caseSensitive="yes" regex="no">Exception:</output>111<output type="failure" caseSensitive="no" regex="no">corrupt</output>112<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>113</test>114115<test id="Test 3: Create a snapshot of the non-persistent cache when the snapshot file already exists" timeout="600" runPath=".">116<command>$JAVA_EXE$ $currentMode$,nonpersistent,snapshotCache</command>117<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">The JVM is creating a snapshot of the non-persistent shared cache "ShareClassesCMLTests", but a snapshot file(.)*ShareClassesCMLTests(.)*already exists and it will be overwritten</output>118<output type="required" caseSensitive="yes" regex="no">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>119<output type="failure" caseSensitive="yes" regex="no">Failed to create</output>120<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>121<output type="failure" caseSensitive="no" regex="no">error</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>127128<test id="Test 4: Create a snapshot of the non-persistent cache without changing to non-persistent mode" timeout="600" runPath=".">129<command>$JAVA_EXE$ $currentMode$,snapshotCache</command>130<output type="success" caseSensitive="yes" regex="no" platforms="zos.*">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>131<output type="success" caseSensitive="yes" regex="no" platforms="aix.*,linux.*,osx.*">To run the "snapshotCache" utility on a nonpersistent shared cache "ShareClassesCMLTests", you must also use the "nonpersistent" suboption</output>132<output type="failure" caseSensitive="yes" regex="no" platforms="zos.*">Failed to create</output>133<output type="failure" caseSensitive="yes" regex="no" platforms="zos.*">Cache does not exist</output>134<output type="failure" caseSensitive="yes" regex="no" platforms="aix.*,linux.*,osx.*">has been created</output>135<output type="failure" caseSensitive="no" regex="no">error</output>136<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>137<output type="failure" caseSensitive="yes" regex="no">Exception:</output>138<output type="failure" caseSensitive="no" regex="no">corrupt</output>139<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>140</test>141142<test id="Test 5: Create a snapshot of the non-persistent cache with reset option" timeout="600" runPath=".">143<command>$JAVA_EXE$ $currentMode$,nonpersistent,snapshotCache,reset -version</command>144<output type="required" caseSensitive="yes" regex="no">Sub-options "reset" and "snapshotCache" are incompatible. Sub-option "reset" is ignored</output>145<output type="success" caseSensitive="yes" regex="no">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>146<output type="failure" caseSensitive="yes" regex="no">Failed to create</output>147<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>148<output type="failure" caseSensitive="no" regex="no">error</output>149<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>150<output type="failure" caseSensitive="yes" regex="no">Exception:</output>151<output type="failure" caseSensitive="no" regex="no">corrupt</output>152<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>153</test>154155<test id="Test 6: Clean up, destroy the non-persistent cache if it exists" timeout="600" runPath=".">156<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>157<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>158<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>159<output type="success" caseSensitive="yes" regex="no">is destroyed</output>160161<output type="failure" caseSensitive="no" regex="no">error</output>162<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>163<output type="failure" caseSensitive="yes" regex="no">Exception:</output>164<output type="failure" caseSensitive="no" regex="no">corrupt</output>165<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>166</test>167168<test id="Test 7: Restore a non-persistent cache that does not exist" timeout="600" runPath=".">169<command>$JAVA_EXE$ $currentMode$,nonpersistent,restoreFromSnapshot</command>170<output type="success" caseSensitive="yes" regex="no">Non-persistent shared cache "ShareClassesCMLTests" has been restored successfully from the snapshot</output>171<output type="failure" caseSensitive="yes" regex="no">Failed to restore</output>172<output type="failure" caseSensitive="no" regex="no">error</output>173<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>174<output type="failure" caseSensitive="yes" regex="no">Exception:</output>175<output type="failure" caseSensitive="no" regex="no">corrupt</output>176<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>177</test>178179<test id="Test 8: Restore a non-persistent cache that already exists" timeout="600" runPath=".">180<command>$JAVA_EXE$ $currentMode$,nonpersistent,restoreFromSnapshot</command>181<output type="success" caseSensitive="yes" regex="no">Non-persistent shared cache "ShareClassesCMLTests" already exists. It cannot be restored from the snapshot</output>182<output type="failure" caseSensitive="no" regex="no">error</output>183<output type="failure" caseSensitive="yes" regex="no">has been restored successfully</output>184<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>185<output type="failure" caseSensitive="yes" regex="no">Exception:</output>186<output type="failure" caseSensitive="no" regex="no">corrupt</output>187<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>188</test>189190<test id="Test 9s: Set up for test 9. Destroy the non-persistent cache if it exists" timeout="600" runPath=".">191<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>192<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>193<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>194<output type="success" caseSensitive="yes" regex="no">is destroyed</output>195196<output type="failure" caseSensitive="no" regex="no">error</output>197<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>198<output type="failure" caseSensitive="yes" regex="no">Exception:</output>199<output type="failure" caseSensitive="no" regex="no">corrupt</output>200<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>201</test>202203<test id="Test 9: Restore a cache without switching to non-persistent mode" timeout="600" runPath=".">204<command>$JAVA_EXE$ $currentMode$,restoreFromSnapshot</command>205<output type="success" caseSensitive="yes" regex="no" platforms="zos.*">Non-persistent shared cache "ShareClassesCMLTests" has been restored successfully from the snapshot</output>206<output type="success" caseSensitive="yes" regex="no" platforms="aix.*,linux.*,osx.*">To run the "restoreFromSnapshot" utility on a nonpersistent shared cache "ShareClassesCMLTests", you must also use the "nonpersistent" suboption</output>207<output type="failure" caseSensitive="no" regex="no">error</output>208<output type="failure" caseSensitive="yes" regex="no" platforms="aix.*,linux.*,osx.*">has been restored successfully</output>209<output type="failure" caseSensitive="yes" regex="no" platforms="zos.*">Failed to restore</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>215216<test id="Test 10s: Setup for test 10. Destroy the non-persistent cache if it exists" timeout="600" runPath=".">217<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>218<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>219<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>220<output type="success" caseSensitive="yes" regex="no">is destroyed</output>221222<output type="failure" caseSensitive="no" regex="no">error</output>223<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>224<output type="failure" caseSensitive="yes" regex="no">Exception:</output>225<output type="failure" caseSensitive="no" regex="no">corrupt</output>226<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>227<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>228<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>229</test>230231<test id="Test 10: Restore a non-persistent cache that does not exist with readOnly option" timeout="600" runPath=".">232<command>$JAVA_EXE$ $currentMode$,nonpersistent,restoreFromSnapshot,readOnly</command>233<output type="required" caseSensitive="yes" regex="no">Sub-options "readonly" and "restoreFromSnapshot" are incompatible. Sub-option "readonly" is ignored</output>234<output type="success" caseSensitive="yes" regex="no">Non-persistent shared cache "ShareClassesCMLTests" has been restored successfully from the snapshot</output>235<output type="failure" caseSensitive="yes" regex="no">Failed to restore</output>236<output type="failure" caseSensitive="no" regex="no">error</output>237<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>238<output type="failure" caseSensitive="yes" regex="no">Exception:</output>239<output type="failure" caseSensitive="no" regex="no">corrupt</output>240<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>241</test>242243<test id="Test 11 - a: Setup for test 11. Create a snapshot of the non-persistent cache that has a bad buildID" timeout="600" runPath=".">244<command>$JAVA_EXE$ $currentMode$,nonpersistent,testBadBuildID,snapshotCache</command>245<output type="success" caseSensitive="yes" regex="no">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>246<output type="failure" caseSensitive="yes" regex="no">Failed to create</output>247<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>248<output type="failure" caseSensitive="no" regex="no">error</output>249<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>250<output type="failure" caseSensitive="yes" regex="no">Exception:</output>251<output type="failure" caseSensitive="no" regex="no">corrupt</output>252<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>253</test>254255<test id="Test 11 - b: Setup for test 11. Destroy the non-persistent cache if it exists" timeout="600" runPath=".">256<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>257<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>258<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>259<output type="success" caseSensitive="yes" regex="no">is destroyed</output>260261<output type="failure" caseSensitive="no" regex="no">error</output>262<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>263<output type="failure" caseSensitive="yes" regex="no">Exception:</output>264<output type="failure" caseSensitive="no" regex="no">corrupt</output>265<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>266<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>267<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>268</test>269270<test id="Test 11: Restore a non-persistent cache that has a different buildID" timeout="600" runPath=".">271<command>$JAVA_EXE$ $currentMode$,nonpersistent,restoreFromSnapshot</command>272<output type="success" caseSensitive="yes" regex="no">The snapshot was created by a different JVM build and doesn't match the running JVM</output>273<output type="required" caseSensitive="yes" regex="no">Failed to restore the non-persistent shared cache "ShareClassesCMLTests" from the snapshot</output>274<output type="failure" caseSensitive="no" regex="no">error</output>275<output type="failure" caseSensitive="yes" regex="no">has been restored successfully</output>276<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>277<output type="failure" caseSensitive="yes" regex="no">Exception:</output>278<output type="failure" caseSensitive="no" regex="no">corrupt</output>279<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>280</test>281282<test id="Test 12: Restore a non-persistent cache that has a different buildID with noAutoPunt option" timeout="600" runPath=".">283<command>$JAVA_EXE$ $currentMode$,nonpersistent,noAutoPunt,restoreFromSnapshot</command>284<output type="success" caseSensitive="yes" regex="no">Non-persistent shared cache "ShareClassesCMLTests" has been restored successfully from the snapshot</output>285<output type="failure" caseSensitive="yes" regex="no">Failed to restore</output>286<output type="failure" caseSensitive="no" regex="no">error</output>287<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>288<output type="failure" caseSensitive="yes" regex="no">Exception:</output>289<output type="failure" caseSensitive="no" regex="no">corrupt</output>290<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>291</test>292293<test id="Test 13: Clean up, destroy the snapshot" timeout="600" runPath=".">294<command>$JAVA_EXE$ $currentMode$,destroySnapshot</command>295<output type="success" caseSensitive="no" regex="no">Shared cache snapshot "ShareClassesCMLTests" is destroyed</output>296<output type="failure" caseSensitive="yes" regex="no">Snapshot does not exist</output>297<output type="failure" caseSensitive="no" regex="no">error</output>298<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>299<output type="failure" caseSensitive="yes" regex="no">Exception:</output>300<output type="failure" caseSensitive="no" regex="no">corrupt</output>301<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>302</test>303304<test id="Test 14: Clean up, destroy the non-persistent cache if it exists" timeout="600" runPath=".">305<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>306<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>307<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>308<output type="success" caseSensitive="yes" regex="no">is destroyed</output>309310<output type="failure" caseSensitive="no" regex="no">error</output>311<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>312<output type="failure" caseSensitive="yes" regex="no">Exception:</output>313<output type="failure" caseSensitive="no" regex="no">corrupt</output>314<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>315<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>316<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>317</test>318319<test id="Test 15: Restore a non-persistent cache from a corrupted snapshot" timeout="600" runPath=".">320<exec command="$JAVA_EXE$ $currentMode$C,printSnapshotFilename -XX:-JITServerTechPreviewMessage" captureStderr="FILENAME" platforms="aix.*,linux.*,osx.*" />321<exec command="$JAVA_EXE$ $currentMode$C,printSnapshotFilename -Xifa:off -XX:-JITServerTechPreviewMessage" captureStderr="FILENAME" platforms="zos.*" />322<exec command="touch $FILENAME$" />323324<command>$JAVA_EXE$ $currentMode$C,nonpersistent,restoreFromSnapshot</command>325<output type="success" caseSensitive="yes" regex="no">The length of the non-persistent shared cache snapshot file "$FILENAME$" is invalid</output>326<output type="required" caseSensitive="yes" regex="no">Failed to restore the non-persistent shared cache "ShareClassesCMLTestsC" from the snapshot</output>327<output type="failure" caseSensitive="no" regex="no">error</output>328<output type="failure" caseSensitive="yes" regex="no">has been restored successfully</output>329<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>330<output type="failure" caseSensitive="yes" regex="no">Exception:</output>331<output type="failure" caseSensitive="no" regex="no">corrupt</output>332<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>333</test>334335<test id="Test 16 - clean up, destroy the corrupted snapshot if exist" timeout="600" runPath=".">336<command>$JAVA_EXE$ $currentMode$C,destroySnapshot</command>337<output type="success" caseSensitive="no" regex="no">Shared cache snapshot "ShareClassesCMLTestsC" is destroyed</output>338<output type="failure" caseSensitive="yes" regex="no">Snapshot does not exist</output>339<output type="failure" caseSensitive="no" regex="no">error</output>340<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>341<output type="failure" caseSensitive="yes" regex="no">Exception:</output>342<output type="failure" caseSensitive="no" regex="no">corrupt</output>343<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>344</test>345346<test id="Test 17 - a: Set up for test 17 and test 18, create a non-persistent cache" timeout="600" runPath=".">347<command>$JAVA_EXE$ $currentMode$,nonpersistent -version</command>348<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>349<output type="failure" caseSensitive="no" regex="no">error</output>350<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>351<output type="failure" caseSensitive="yes" regex="no">Exception:</output>352<output type="failure" caseSensitive="no" regex="no">corrupt</output>353<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>354</test>355356<test id="Test 17 - b: Set up for test 17 and test 18, create a snapshot of the non-persistent cache" timeout="600" runPath=".">357<command>$JAVA_EXE$ $currentMode$,nonpersistent,snapshotCache</command>358<output type="success" caseSensitive="yes" regex="no">Snapshot of non-persistent shared cache "ShareClassesCMLTests" has been created</output>359<output type="failure" caseSensitive="yes" regex="no">Failed to create</output>360<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>361<output type="failure" caseSensitive="no" regex="no">error</output>362<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>363<output type="failure" caseSensitive="yes" regex="no">Exception:</output>364<output type="failure" caseSensitive="no" regex="no">corrupt</output>365<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>366</test>367368<test id="Test 17 - c: run listAllCaches to show the snapshot" timeout="600" runPath=".">369<command>$JAVA_EXE$ -Xshareclasses:listAllCaches</command>370<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">ShareClassesCMLTests[\s]*Java(.)*snapshot</output>371<output type="failure" caseSensitive="yes" regex="no" javaUtilPattern="yes">No shared class caches available</output>372<output type="failure" caseSensitive="no" regex="no">error</output>373<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>374<output type="failure" caseSensitive="yes" regex="no">Exception:</output>375</test>376377<test id="Test 18: Destroy all snapshots" timeout="600" runPath=".">378<command>$JAVA_EXE$ -Xshareclasses:destroyAllSnapshots</command>379<output type="success" caseSensitive="yes" regex="no">Attempting to destroy all shared cache snapshots in cacheDir</output>380<output type="required" caseSensitive="no" regex="no">Shared cache snapshot "ShareClassesCMLTests" is destroyed</output>381<output type="failure" caseSensitive="yes" regex="no">No snapshots available</output>382<output type="failure" caseSensitive="no" regex="no">error</output>383<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>384<output type="failure" caseSensitive="yes" regex="no">Exception:</output>385<output type="failure" caseSensitive="no" regex="no">corrupt</output>386<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>387</test>388389<test id="At end destroy persistent cache for cleanup" timeout="600" runPath=".">390<command>$JAVA_EXE$ $currentMode$P,destroy</command>391<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>392<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>393<output type="success" caseSensitive="yes" regex="no">is destroyed</output>394395<output type="failure" caseSensitive="no" regex="no">error</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<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>401<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>402</test>403404<test id="At end destroy non-persistent cache for cleanup" timeout="600" runPath=".">405<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>406<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>407<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>408<output type="success" caseSensitive="yes" regex="no">is destroyed</output>409410<output type="failure" caseSensitive="no" regex="no">error</output>411<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>412<output type="failure" caseSensitive="yes" regex="no">Exception:</output>413<output type="failure" caseSensitive="no" regex="no">corrupt</output>414<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>415<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>416<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>417</test>418419<!--420***** IMPORTANT NOTE *****421The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.422-->423</suite>424425426