Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCCMLTests/ShareClassesCMLTests-5.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 189-a to Test 199-c: 76 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="JAVAC_DIR" value="$JAVA_HOME$$PATHSEP$bin"/>35<variable name="CACHE_DIR" value="cacheDir=."/>3637<variable name="BOOTCLASSPATH" value="-Xbootclasspath/a:.$PATHSEP$Utils$CPDL$."/>38<variable name="currentMode" value="$mode204$"/>39<variable name="XXShareClassesEnableBCI" value="-XX:ShareClassesEnableBCI"/>4041<variable name="CP_HANOI" value="-cp $UTILSJAR$" />42<variable name="BOOTCP_HANOI" value="-Xbootclasspath/a:$UTILSJAR$" />43<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />44<variable name="CLASS_HANOI" value="org/openj9/test/ivj/Hanoi" />45<variable name="BOOTSTRAP_CLASS" value="java/lang/Object" />4647<variable name="AGENT_NOCLASSMODIFICATION" value="-agentlib:jvmtitest=test:ecflh001,args:noModify" />48<variable name="AGENT_RETRANSFORM" value="-agentlib:jvmtitest=test:rtc001" />4950<variable name="DUMPFILE" value="shrcmltest" />51<variable name="SYSDUMP" value="-Xdump:system:file=$DUMPFILE$.dmp" />52<variable name="JAVADUMP" value="-Xdump:java:file=$DUMPFILE$.txt" />53<variable name="SNAPDUMP" value="-Xdump:snap:file=$DUMPFILE$.trc" />54<!-- Override -Xdump option on z/OS -->55<variable name="SYSDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP" platforms="zos.*" />5657<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />58<variable name="WINDOWS_PLATFORMS" value="win.*" />5960<!--61Following variable specifies cache directory to be used by tests for 'cacheDirPerm' sub-option.62Since 'cacheDirPerm' sub-option is not applicable on Windows, we can use current dir as cache dir.63-->64<variable name="CACHE_DIR_FOR_PERM_TEST" value="/tmp/ShareClassesCMLTestDir" platforms="$NON_WINDOWS_PLATFORMS$" />65<variable name="CACHE_DIR_FOR_PERM_TEST" value="." platforms="$WINDOWS_PLATFORMS$" />6667<if testVariable="SCMODE" testValue="204" resultVariable="currentMode" resultValue="$mode204$"/>6869<echo value=" "/>70<echo value="#######################################################"/>71<echo value="Running tests in mode $SCMODE$ with command line options: $currentMode$"/>72<echo value="#######################################################"/>73<echo value=" "/>7475<!--76Note:77Most tests check for strings 'corrupt', 'JVM requested Java dump', and 'JVM requested Snap dump' in the output.78These checks are present because a cache may be found to be corrupt, and the test could otherwise pass.7980The string 'corrupt' is checked because it can appear several messages like below.81JVMSHRC443E Cache CRC is incorrect indicating a corrupt cache. Incorrect cache CRC: 0x0.82JVMDUMP013I Processed dump event "corruptcache", detail "".83JVMSHRC442E Shared cache "jim" is corrupt. Corruption code is -1. Corrupt value is 0x0. No new JVMs will be allowed to connect to the cache.84-->8586<test id="Start : Cleanup: persistent" timeout="600" runPath=".">87<command>$JAVA_EXE$ $currentMode$,destroy</command>88<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>89<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>90<output type="success" caseSensitive="yes" regex="no">is destroyed</output>91<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>92<output type="failure" caseSensitive="yes" regex="no">Exception:</output>93<output type="failure" caseSensitive="no" regex="no">corrupt</output>94<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>95</test>969798<test id="Start: Cleanup: nonpersistent" timeout="600" runPath=".">99<command>$JAVA_EXE$ $currentMode$,nonpersistent,destroy</command>100<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>101<output type="success" caseSensitive="yes" regex="no">is destroyed</output>102<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>103<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>104<output type="failure" caseSensitive="yes" regex="no">Exception:</output>105<output type="failure" caseSensitive="no" regex="no">corrupt</output>106<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>107</test>108109<test id="Test 189-a: Test for special value of 'cacheDirPerm' sub-option with sticky bit on" timeout="600" runPath=".">110<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=1000 -version</command>111<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>112<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>113<output type="failure" caseSensitive="yes" regex="no">Exception:</output>114<output type="failure" caseSensitive="no" regex="no">corrupt</output>115<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>116</test>117118<test id="Test 189-b: Verify that cache can be re-used" timeout="600" runPath=".">119<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$ -version</command>120<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>121<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>122<output type="failure" caseSensitive="yes" regex="no">Exception:</output>123<output type="failure" caseSensitive="no" regex="no">corrupt</output>124<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>125</test>126127<test id="Test 189-c: Cleanup the cache" timeout="600" runPath=".">128<command>$JAVA_EXE$ $currentMode$,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,destroy</command>129<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>130<output type="success" caseSensitive="yes" regex="no">is destroyed</output>131132<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>133<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>134<output type="failure" caseSensitive="yes" regex="no">Exception:</output>135<output type="failure" caseSensitive="no" regex="no">corrupt</output>136<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>137</test>138139<exec command="rm -fr $CACHE_DIR_FOR_PERM_TEST$" quiet="false" platforms="$NON_WINDOWS_PLATFORMS$"/>140141<test id="Test 190-a: Use 'cacheDirPerm' sub-option on existing directory" timeout="600" runPath=".">142<command>$JAVA_EXE$ $currentMode$,reset,$CACHE_DIR$,cacheDirPerm=0744 -version</command>143<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>144<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>145<output type="failure" caseSensitive="yes" regex="no">Exception:</output>146<output type="failure" caseSensitive="no" regex="no">corrupt</output>147<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>148</test>149150<test id="Test 190-b: Verify that cache can be re-used" timeout="600" runPath=".">151<command>$JAVA_EXE$ $currentMode$,$CACHE_DIR$ -version</command>152<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>153<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>154<output type="failure" caseSensitive="yes" regex="no">Exception:</output>155<output type="failure" caseSensitive="no" regex="no">corrupt</output>156<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>157</test>158159<test id="Test 190-c: Cleanup the cache" timeout="600" runPath=".">160<command>$JAVA_EXE$ $currentMode$,$CACHE_DIR$,destroy</command>161<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>162<output type="success" caseSensitive="yes" regex="no">is destroyed</output>163164<output type="failure" caseSensitive="yes" regex="no">Cache does not exist</output>165<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>166<output type="failure" caseSensitive="yes" regex="no">Exception:</output>167<output type="failure" caseSensitive="no" regex="no">corrupt</output>168<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>169</test>170171<test id="Test 191: Use 'cacheDirPerm' sub-option on default cache directory" timeout="600" runPath=".">172<command>$JAVA_EXE$ $currentMode$,reset,cacheDirPerm=0744 -version</command>173<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>174<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>175<output type="failure" caseSensitive="yes" regex="no">Exception:</output>176<output type="failure" caseSensitive="no" regex="no">corrupt</output>177<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>178</test>179180<!-- Following test behaves differently on windows and unix-like platforms -->181<test id="Test 192: Test for invalid value of 'cacheDirPerm' sub-option" timeout="600" runPath=".">182<command>$JAVA_EXE$ $currentMode$,reset,cacheDir=$CACHE_DIR_FOR_PERM_TEST$,cacheDirPerm=0577 -version</command>183<output type="success" caseSensitive="yes" regex="no" platforms="$NON_WINDOWS_PLATFORMS$">Invalid setting for cacheDirPerm option</output>184<output type="required" caseSensitive="yes" regex="no" platforms="$NON_WINDOWS_PLATFORMS$">Initialization error</output>185<output type="failure" caseSensitive="no" regex="yes" platforms="$NON_WINDOWS_PLATFORMS$" javaUtilPattern="yes">(java|openjdk|semeru) version</output>186187<output type="success" caseSensitive="no" regex="yes" platforms="$WINDOWS_PLATFORMS$" javaUtilPattern="yes">(java|openjdk|semeru) version</output>188189<output type="failure" caseSensitive="no" regex="no">corrupt</output>190<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>191<output type="failure" caseSensitive="yes" regex="no">Exception:</output>192<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>193</test>194195<test id="Test 193: Code coverage on Xshareclasses:doExtraAreaChecks" timeout="600" runPath=".">196<command>$JAVA_EXE$ $currentMode$,reset,enablebci,doExtraAreaChecks -version</command>197<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>198<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>199<output type="failure" caseSensitive="yes" regex="no">Exception:</output>200<output type="failure" caseSensitive="no" regex="no">corrupt</output>201<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>202</test>203204<!-- Tests 194a-k verify behavior of -XX:ShareClassesEnableBCI with other -Xshareclasses sub-options -->205206<test id="Test 194-a: Test -Xshareclasses followed by -XX:ShareClassesEnableBCI" timeout="600" runPath=".">207<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesEnableBCI$ -version</command>208<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>209<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>210<output type="failure" caseSensitive="yes" regex="no">Exception:</output>211<output type="failure" caseSensitive="no" regex="no">corrupt</output>212<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>213</test>214215<test id="Test 194-b: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">216<command>$JAVA_EXE$ $currentMode$,printStats -version</command>217<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>218<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>219<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>220<output type="failure" caseSensitive="yes" regex="no">Exception:</output>221<output type="failure" caseSensitive="no" regex="no">corrupt</output>222<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>223</test>224225<test id="Test 194-c: Test -XX:ShareClassesEnableBCI followed by -Xshareclasses" timeout="600" runPath=".">226<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,reset -version</command>227<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>228<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>229<output type="failure" caseSensitive="yes" regex="no">Exception:</output>230<output type="failure" caseSensitive="no" regex="no">corrupt</output>231<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>232</test>233234<test id="Test 194-d: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">235<command>$JAVA_EXE$ $currentMode$,printStats -version</command>236<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>237<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>238<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>239<output type="failure" caseSensitive="yes" regex="no">Exception:</output>240<output type="failure" caseSensitive="no" regex="no">corrupt</output>241<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>242</test>243244<test id="Test 194-e: Destroy any existing cache" timeout="600" runPath=".">245<command>$JAVA_EXE$ $currentMode$,destroy</command>246<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>247<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>248<output type="success" caseSensitive="yes" regex="no">is destroyed</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 194-f: Try to use -XX:ShareClassesEnableBCI after -Xshareclasses:none to create a cache" timeout="600" runPath=".">256<command>$JAVA_EXE$ $currentMode$,none $XXShareClassesEnableBCI$ -version</command>257<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>258<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>259<output type="failure" caseSensitive="yes" regex="no">Exception:</output>260<output type="failure" caseSensitive="no" regex="no">corrupt</output>261<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>262</test>263264<test id="Test 194-g: Verify that cache is not created by previous test" timeout="600" runPath=".">265<command>$JAVA_EXE$ $currentMode$,printStats -version</command>266<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>267<output type="failure" caseSensitive="no" regex="no">Current statistics</output>268<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>269<output type="failure" caseSensitive="yes" regex="no">Exception:</output>270<output type="failure" caseSensitive="no" regex="no">corrupt</output>271<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>272</test>273274<test id="Test 194-h: Try to use -XX:ShareClassesEnableBCI before -Xshareclasses:none to create a cache" timeout="600" runPath=".">275<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,none -version</command>276<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>277<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>278<output type="failure" caseSensitive="yes" regex="no">Exception:</output>279<output type="failure" caseSensitive="no" regex="no">corrupt</output>280<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>281</test>282283<test id="Test 194-i: Verify that cache is not created by previous test" timeout="600" runPath=".">284<command>$JAVA_EXE$ $currentMode$,printStats -version</command>285<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>286<output type="failure" caseSensitive="no" regex="no">Current statistics</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 194-j: Try to use -XX:ShareClassesEnableBCI without -Xshareclasses to create a cache" timeout="600" runPath=".">294<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ -version</command>295<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>296<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>297<output type="failure" caseSensitive="yes" regex="no">Exception:</output>298<output type="failure" caseSensitive="no" regex="no">corrupt</output>299<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>300</test>301302<test id="Test 194-k: Verify that cache is not created by previous test" timeout="600" runPath=".">303<command>$JAVA_EXE$ $currentMode$,printStats -version</command>304<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>305<output type="failure" caseSensitive="no" regex="no">Current statistics</output>306<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>307<output type="failure" caseSensitive="yes" regex="no">Exception:</output>308<output type="failure" caseSensitive="no" regex="no">corrupt</output>309<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>310</test>311312<!-- Tests 195a-p test the behavior of '-XX:ShareClassEnableBCI' on an existing cache that does not support BCI -->313314<test id="Test 195-a: Create a cache without BCI support" timeout="600" runPath=".">315<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>316<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>317<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>318<output type="failure" caseSensitive="yes" regex="no">Exception:</output>319<output type="failure" caseSensitive="no" regex="no">corrupt</output>320<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>321</test>322323<test id="Test 195-b: Ensure cache created without enableBCI option is not usable with -XX:ShareClassEnableBCI option" timeout="600" runPath=".">324<command>$JAVA_EXE$ $currentMode$ $XXShareClassesEnableBCI$ -version</command>325<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Initialization error for library j9shr*</output>326<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>327<output type="failure" caseSensitive="yes" regex="no">Exception:</output>328<output type="failure" caseSensitive="no" regex="no">corrupt</output>329<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>330</test>331332<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=".">333<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,nonfatal,verboseIO -version</command>334<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>335<output type="failure" caseSensitive="yes" regex="no">Found class</output>336<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>337<output type="failure" caseSensitive="yes" regex="no">Exception:</output>338<output type="failure" caseSensitive="no" regex="no">corrupt</output>339<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>340</test>341342<test id="Test 195-d: Run 'printStats' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">343<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,printStats -version</command>344<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>345<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>346<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>347<output type="failure" caseSensitive="yes" regex="no">Exception:</output>348<output type="failure" caseSensitive="no" regex="no">corrupt</output>349<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>350</test>351352<test id="Test 195-e: Run 'printStats' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">353<command>$JAVA_EXE$ $currentMode$,printStats $XXShareClassesEnableBCI$ -version</command>354<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>355<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>356<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>357<output type="failure" caseSensitive="yes" regex="no">Exception:</output>358<output type="failure" caseSensitive="no" regex="no">corrupt</output>359<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>360</test>361362<test id="Test 195-f: Run 'listAllCaches' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">363<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,listAllCaches -version</command>364<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>365<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>366<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>367<output type="failure" caseSensitive="yes" regex="no">Exception:</output>368<output type="failure" caseSensitive="no" regex="no">corrupt</output>369<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>370</test>371372<test id="Test 195-g: Run 'listAllCaches' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' sub-option specified after it" timeout="600" runPath=".">373<command>$JAVA_EXE$ $currentMode$,listAllCaches $XXShareClassesEnableBCI$ -version</command>374<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>375<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>376<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>377<output type="failure" caseSensitive="yes" regex="no">Exception:</output>378<output type="failure" caseSensitive="no" regex="no">corrupt</output>379<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>380</test>381382<test id="Test 195-h: Run 'destroy' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">383<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,destroy</command>384<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>385<output type="success" caseSensitive="yes" regex="no">is destroyed</output>386<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>387<output type="failure" caseSensitive="yes" regex="no">Exception:</output>388<output type="failure" caseSensitive="no" regex="no">corrupt</output>389<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>390</test>391392<test id="Test 195-i: Create a cache without BCI support" timeout="600" runPath=".">393<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>394<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>395<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>396<output type="failure" caseSensitive="yes" regex="no">Exception:</output>397<output type="failure" caseSensitive="no" regex="no">corrupt</output>398<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>399</test>400401<test id="Test 195-j: Run 'destroy' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">402<command>$JAVA_EXE$ $currentMode$,destroy $XXShareClassesEnableBCI$</command>403<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>404<output type="success" caseSensitive="yes" regex="no">is destroyed</output>405<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>406<output type="failure" caseSensitive="yes" regex="no">Exception:</output>407<output type="failure" caseSensitive="no" regex="no">corrupt</output>408<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>409</test>410411<test id="Test 195-k: Create a cache without BCI support" timeout="600" runPath=".">412<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>413<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>414<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>415<output type="failure" caseSensitive="yes" regex="no">Exception:</output>416<output type="failure" caseSensitive="no" regex="no">corrupt</output>417<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>418</test>419420<test id="Test 195-l: Run 'reset' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified before it" timeout="600" runPath=".">421<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,reset -version</command>422<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>423<output type="success" caseSensitive="yes" regex="no">is destroyed</output>424<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>425<output type="failure" caseSensitive="yes" regex="no">Exception:</output>426<output type="failure" caseSensitive="no" regex="no">corrupt</output>427<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>428</test>429430<test id="Test 195-m: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">431<command>$JAVA_EXE$ $currentMode$,printStats -version</command>432<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>433<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>434<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>435<output type="failure" caseSensitive="yes" regex="no">Exception:</output>436<output type="failure" caseSensitive="no" regex="no">corrupt</output>437<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>438</test>439440<test id="Test 195-n: Create a cache without BCI support" timeout="600" runPath=".">441<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>442<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>443<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>444<output type="failure" caseSensitive="yes" regex="no">Exception:</output>445<output type="failure" caseSensitive="no" regex="no">corrupt</output>446<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>447</test>448449<test id="Test 195-o: Run 'reset' on an existing BCI disabled cache with '-XX:ShareClassesEnableBCI' option specified after it" timeout="600" runPath=".">450<command>$JAVA_EXE$ $currentMode$,reset $XXShareClassesEnableBCI$ -version</command>451<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>452<output type="success" caseSensitive="yes" regex="no">is destroyed</output>453<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>454<output type="failure" caseSensitive="yes" regex="no">Exception:</output>455<output type="failure" caseSensitive="no" regex="no">corrupt</output>456<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>457</test>458459<test id="Test 195-p: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">460<command>$JAVA_EXE$ $currentMode$,printStats -version</command>461<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>462<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>463<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>464<output type="failure" caseSensitive="yes" regex="no">Exception:</output>465<output type="failure" caseSensitive="no" regex="no">corrupt</output>466<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>467</test>468469<!-- Tests 196a-l verify behavior of -Xshareclasses:disableBCI -->470471<test id="Test 196-a: Verify that -Xshareclasses:disableBCI overrides -XX:ShareClassesEnableBCI when specified before it" timeout="600" runPath=".">472<command>$JAVA_EXE$ $currentMode$,disableBCI,reset $XXShareClassesEnableBCI$ -version</command>473<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>474<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>475<output type="failure" caseSensitive="yes" regex="no">Exception:</output>476<output type="failure" caseSensitive="no" regex="no">corrupt</output>477<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>478</test>479480<test id="Test 196-b: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">481<command>$JAVA_EXE$ $currentMode$,printStats -version</command>482<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>483<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>484<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>485<output type="failure" caseSensitive="yes" regex="no">Exception:</output>486<output type="failure" caseSensitive="no" regex="no">corrupt</output>487<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>488</test>489490<test id="Test 196-c: Verify that -Xshareclasses:disableBCI overrides -XX:ShareClassesEnableBCI when specified after it" timeout="600" runPath=".">491<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,disableBCI,reset -version</command>492<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>493<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>494<output type="failure" caseSensitive="yes" regex="no">Exception:</output>495<output type="failure" caseSensitive="no" regex="no">corrupt</output>496<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>497</test>498499<test id="Test 196-d: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">500<command>$JAVA_EXE$ $currentMode$,printStats -version</command>501<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>502<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>503<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>504<output type="failure" caseSensitive="yes" regex="no">Exception:</output>505<output type="failure" caseSensitive="no" regex="no">corrupt</output>506<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>507</test>508509<test id="Test 196-e: Use -Xshareclasses:enableBCI,disableBCI to create a cache without BCI support" timeout="600" runPath=".">510<command>$JAVA_EXE$ $currentMode$,enableBCI,disableBCI,reset -version</command>511<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>512<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>513<output type="failure" caseSensitive="yes" regex="no">Exception:</output>514<output type="failure" caseSensitive="no" regex="no">corrupt</output>515<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>516</test>517518<test id="Test 196-f: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">519<command>$JAVA_EXE$ $currentMode$,printStats -version</command>520<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>521<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>522<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>523<output type="failure" caseSensitive="yes" regex="no">Exception:</output>524<output type="failure" caseSensitive="no" regex="no">corrupt</output>525<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>526</test>527528<test id="Test 196-g: Use -Xshareclasses:disableBCI,enableBCI to create a cache with BCI support" timeout="600" runPath=".">529<command>$JAVA_EXE$ $currentMode$,disableBCI,enableBCI,reset -version</command>530<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>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>536537<test id="Test 196-h: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">538<command>$JAVA_EXE$ $currentMode$,printStats -version</command>539<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>540<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>541<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>542<output type="failure" caseSensitive="yes" regex="no">Exception:</output>543<output type="failure" caseSensitive="no" regex="no">corrupt</output>544<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>545</test>546547<test id="Test 196-i: Create a BCI enabled cache with multiple BCI options" timeout="600" runPath=".">548<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,disableBCI,enableBCI,reset -version</command>549<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>550<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>551<output type="failure" caseSensitive="yes" regex="no">Exception:</output>552<output type="failure" caseSensitive="no" regex="no">corrupt</output>553<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>554</test>555556<test id="Test 196-j: Ensure BCI Enabled is true in printStats output" timeout="600" runPath=".">557<command>$JAVA_EXE$ $currentMode$,printStats -version</command>558<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>559<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>560<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>561<output type="failure" caseSensitive="yes" regex="no">Exception:</output>562<output type="failure" caseSensitive="no" regex="no">corrupt</output>563<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>564</test>565566<test id="Test 196-k: Create a BCI disabled cache with multiple BCI options" timeout="600" runPath=".">567<command>$JAVA_EXE$ $XXShareClassesEnableBCI$ $currentMode$,enableBCI,disableBCI,reset -version</command>568<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>569<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>570<output type="failure" caseSensitive="yes" regex="no">Exception:</output>571<output type="failure" caseSensitive="no" regex="no">corrupt</output>572<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>573</test>574575<test id="Test 196-l: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">576<command>$JAVA_EXE$ $currentMode$,printStats -version</command>577<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>578<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>579<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>580<output type="failure" caseSensitive="yes" regex="no">Exception:</output>581<output type="failure" caseSensitive="no" regex="no">corrupt</output>582<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>583</test>584585<!-- Tests 197a-p test the behavior of 'disableBCI' on an existing cache that supports BCI -->586587<test id="Test 197-a: Create a cache with BCI support" timeout="600" runPath=".">588<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>589<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>590<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>591<output type="failure" caseSensitive="yes" regex="no">Exception:</output>592<output type="failure" caseSensitive="no" regex="no">corrupt</output>593<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>594</test>595596<test id="Test 197-b: Try to use an existing BCI enabled cache with 'disableBCI' sub-option" timeout="600" runPath=".">597<command>$JAVA_EXE$ $currentMode$,disableBCI -version</command>598<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">Initialization error for library j9shr*</output>599<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>600<output type="failure" caseSensitive="yes" regex="no">Exception:</output>601<output type="failure" caseSensitive="no" regex="no">corrupt</output>602<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>603</test>604605<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=".">606<command>$JAVA_EXE$ $currentMode$,disableBCI,nonfatal,verboseIO -version</command>607<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>608<output type="failure" caseSensitive="yes" regex="no">Found class</output>609<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>610<output type="failure" caseSensitive="yes" regex="no">Exception:</output>611<output type="failure" caseSensitive="no" regex="no">corrupt</output>612<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>613</test>614615<test id="Test 197-d: Run 'printStats' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">616<command>$JAVA_EXE$ $currentMode$,disableBCI,printStats -version</command>617<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>618<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>619<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>620<output type="failure" caseSensitive="yes" regex="no">Exception:</output>621<output type="failure" caseSensitive="no" regex="no">corrupt</output>622<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>623</test>624625<test id="Test 197-e: Run 'printStats' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">626<command>$JAVA_EXE$ $currentMode$,printStats,disableBCI -version</command>627<output type="success" caseSensitive="yes" regex="no">Current statistics for cache</output>628<output type="required" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>629<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>630<output type="failure" caseSensitive="yes" regex="no">Exception:</output>631<output type="failure" caseSensitive="no" regex="no">corrupt</output>632<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>633</test>634635<test id="Test 197-f: Run 'listAllCaches' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">636<command>$JAVA_EXE$ $currentMode$,disableBCI,listAllCaches -version</command>637<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>638<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>639<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>640<output type="failure" caseSensitive="yes" regex="no">Exception:</output>641<output type="failure" caseSensitive="no" regex="no">corrupt</output>642<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>643</test>644645<test id="Test 197-g: Run 'listAllCaches' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">646<command>$JAVA_EXE$ $currentMode$,listAllCaches,disableBCI -version</command>647<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">Cache[\s]*name[\s]*level[\s]*(persistent|cache-type)(.)*last detach time</output>648<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes" showMatch="yes">ShareClassesCMLTests[\s]*Java(.)*(yes|persistent)</output>649<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>650<output type="failure" caseSensitive="yes" regex="no">Exception:</output>651<output type="failure" caseSensitive="no" regex="no">corrupt</output>652<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>653</test>654655<test id="Test 197-h: Run 'destroy' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">656<command>$JAVA_EXE$ $currentMode$,disableBCI,destroy</command>657<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>658<output type="success" caseSensitive="yes" regex="no">is destroyed</output>659<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>660<output type="failure" caseSensitive="yes" regex="no">Exception:</output>661<output type="failure" caseSensitive="no" regex="no">corrupt</output>662<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>663</test>664665<test id="Test 197-i: Create a cache with BCI support" timeout="600" runPath=".">666<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -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>673674<test id="Test 197-j: Run 'destroy' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">675<command>$JAVA_EXE$ $currentMode$,destroy,disableBCI</command>676<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>677<output type="success" caseSensitive="yes" regex="no">is destroyed</output>678<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>679<output type="failure" caseSensitive="yes" regex="no">Exception:</output>680<output type="failure" caseSensitive="no" regex="no">corrupt</output>681<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>682</test>683684<test id="Test 197-k: Create a cache with BCI support" timeout="600" runPath=".">685<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>686<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>687<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>688<output type="failure" caseSensitive="yes" regex="no">Exception:</output>689<output type="failure" caseSensitive="no" regex="no">corrupt</output>690<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>691</test>692693<test id="Test 197-l: Run 'reset' on an existing BCI enabled cache with 'disableBCI' sub-option specified before it" timeout="600" runPath=".">694<command>$JAVA_EXE$ $currentMode$,disableBCI,reset -version</command>695<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>696<output type="success" caseSensitive="yes" regex="no">is destroyed</output>697<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>698<output type="failure" caseSensitive="yes" regex="no">Exception:</output>699<output type="failure" caseSensitive="no" regex="no">corrupt</output>700<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>701</test>702703<test id="Test 197-m: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">704<command>$JAVA_EXE$ $currentMode$,printStats -version</command>705<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>706<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>707<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>708<output type="failure" caseSensitive="yes" regex="no">Exception:</output>709<output type="failure" caseSensitive="no" regex="no">corrupt</output>710<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>711</test>712713<test id="Test 197-n: Run 'reset' on an existing BCI disabled cache with 'enableBCI' sub-option specified before it" timeout="600" runPath=".">714<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>715<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>716<output type="success" caseSensitive="yes" regex="no">is destroyed</output>717<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>718<output type="failure" caseSensitive="yes" regex="no">Exception:</output>719<output type="failure" caseSensitive="no" regex="no">corrupt</output>720<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>721</test>722723<test id="Test 197-o: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">724<command>$JAVA_EXE$ $currentMode$,printStats -version</command>725<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>726<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>727<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>728<output type="failure" caseSensitive="yes" regex="no">Exception:</output>729<output type="failure" caseSensitive="no" regex="no">corrupt</output>730<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>731</test>732733<test id="Test 197-p: Create a cache with BCI support" timeout="600" runPath=".">734<command>$JAVA_EXE$ $currentMode$,enableBCI,reset -version</command>735<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>736<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>737<output type="failure" caseSensitive="yes" regex="no">Exception:</output>738<output type="failure" caseSensitive="no" regex="no">corrupt</output>739<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>740</test>741742<test id="Test 197-q: Run 'reset' on an existing BCI enabled cache with 'disableBCI' sub-option specified after it" timeout="600" runPath=".">743<command>$JAVA_EXE$ $currentMode$,reset,disableBCI -version</command>744<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>745<output type="success" caseSensitive="yes" regex="no">is destroyed</output>746<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>747<output type="failure" caseSensitive="yes" regex="no">Exception:</output>748<output type="failure" caseSensitive="no" regex="no">corrupt</output>749<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>750</test>751752<test id="Test 197-r: Verify BCI Enabled is false in printStats output" timeout="600" runPath=".">753<command>$JAVA_EXE$ $currentMode$,printStats -version</command>754<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= false</output>755<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>756<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>757<output type="failure" caseSensitive="yes" regex="no">Exception:</output>758<output type="failure" caseSensitive="no" regex="no">corrupt</output>759<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>760</test>761762<test id="Test 197-s: Run 'reset' on an existing BCI disabled cache with 'enableBCI' sub-option specified after it" timeout="600" runPath=".">763<command>$JAVA_EXE$ $currentMode$,reset,enableBCI -version</command>764<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>765<output type="success" caseSensitive="yes" regex="no">is destroyed</output>766<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>767<output type="failure" caseSensitive="yes" regex="no">Exception:</output>768<output type="failure" caseSensitive="no" regex="no">corrupt</output>769<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>770</test>771772<test id="Test 197-t: Verify BCI Enabled is true in printStats output" timeout="600" runPath=".">773<command>$JAVA_EXE$ $currentMode$,printStats -version</command>774<output type="success" caseSensitive="yes" regex="yes" javaUtilPattern="yes">BCI Enabled[\s]*= true</output>775<output type="failure" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>776<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>777<output type="failure" caseSensitive="yes" regex="no">Exception:</output>778<output type="failure" caseSensitive="no" regex="no">corrupt</output>779<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>780</test>781782<!-- Tests for CMVC 182368 and CMVC 188407.783There are two cases to be tested:784Case 1: Tests 198a-b.785Create a cache with a modification context i.e. with 'modified=<mod>' option.786Reuse it without modification context in read-only mode.787Case 2: Tests 199a-c.788Add a sample class C in the cache.789Add the classpath of C to boot classpath in the cache.790Reuse the cache in read-only mode to load C with classpath of C added to boot classpath.791-->792793<test id="Test 198-a: Create a cache with modification context" timeout="600" runPath=".">794<command>$JAVA_EXE$ $currentMode$,modified=mod1,reset -version</command>795<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>796<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>797<output type="failure" caseSensitive="yes" regex="no">Exception:</output>798<output type="failure" caseSensitive="no" regex="no">corrupt</output>799<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>800</test>801802<test id="Test 198-b: Re-use previous cache without modification context in read-only mode" timeout="600" runPath=".">803<command>$JAVA_EXE$ $currentMode$,readonly -version</command>804<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>805<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>806<output type="failure" caseSensitive="yes" regex="no">Exception:</output>807<output type="failure" caseSensitive="no" regex="no">corrupt</output>808<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>809</test>810811<test id="Test 199-a: Create a cache with a sample program" timeout="600" runPath=".">812<command>$JAVA_EXE$ $currentMode$,reset -Xnolinenumbers $CP_HANOI$ $PROGRAM_HANOI$</command>813<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>814<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>815<output type="failure" caseSensitive="yes" regex="no">Exception:</output>816<output type="failure" caseSensitive="no" regex="no">corrupt</output>817<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>818</test>819820<test id="Test 199-b: Add classpath of sample program as boot classpath in the cache" timeout="600" runPath=".">821<command>$JAVA_EXE$ $BOOTCP_HANOI$ $currentMode$ -version</command>822<output type="success" caseSensitive="no" regex="yes" javaUtilPattern="yes">(java|openjdk|semeru) version</output>823<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>824<output type="failure" caseSensitive="yes" regex="no">Exception:</output>825<output type="failure" caseSensitive="no" regex="no">corrupt</output>826<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>827</test>828829<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=".">830<command>$JAVA_EXE$ $BOOTCP_HANOI$ $currentMode$,readonly -Xnolinenumbers $PROGRAM_HANOI$</command>831<output type="success" caseSensitive="yes" regex="no">Puzzle solved!</output>832<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>833<output type="failure" caseSensitive="yes" regex="no">Exception:</output>834<output type="failure" caseSensitive="no" regex="no">corrupt</output>835<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>836</test>837838<test id="At end destroy cache for cleanup" timeout="600" runPath=".">839<command>$JAVA_EXE$ $currentMode$,destroy</command>840<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>841<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>842<output type="success" caseSensitive="yes" regex="no">is destroyed</output>843844<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>845<output type="failure" caseSensitive="yes" regex="no">Exception:</output>846<output type="failure" caseSensitive="no" regex="no">corrupt</output>847<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>848<output type="failure" caseSensitive="yes" regex="no">JVM requested Java dump</output>849<output type="failure" caseSensitive="yes" regex="no">JVM requested Snap dump</output>850</test>851852<!--853***** IMPORTANT NOTE *****854The last test in this file is normally a call to -Xshareclasses:destroy. When the test passes no files should ever be left behind.855-->856</suite>857858859