Path: blob/master/test/functional/cmdLineTests/modularityddrtests/modularityddrtests11.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2018, 2022 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<suite id="J9 modularity ddr command Tests" timeout="600">2728<variable name="PROGRAM" value="-version" />29<variable name="DUMPFILE" value="j9corep.dmp" />30<variable name="DUMPFILE_DENY" value="j9cored.dmp" />31<variable name="DUMPDIR" value="dumpdir" />32<variable name="XDUMP" value="-Xdump:system:file=$DUMPFILE$,events=vmstop" />33<variable name="XDUMP_DENY" value="-Xdump:system:file=$DUMPFILE_DENY$,events=vmstop" />3435<!-- override the -Xdump command on z/OS -->36<variable name="XDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />37<variable name="XDUMP_DENY" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORED.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />3839<test id="Create core file --illegal-access=permit">40<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />41<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />42<exec command="rm -f $DUMPFILE$" />43<command>$EXE$ -Xmx4m $XDUMP$ --illegal-access=permit $PROGRAM$</command>44<output regex="no" type="success">System dump written</output>45<!-- check for unexpected core dumps -->46<output regex="no" type="failure">0001.dmp</output>47</test>4849<test id="Create core file --illegal-access=deny">50<exec command="tso delete J9CORED.DMP.*" platforms="zos_390-64.*" />51<exec command="tso delete J9CORED.DMP" platforms="zos_390-31.*" />52<exec command="rm -f $DUMPFILE_DENY$" />53<command>$EXE$ -Xmx4m $XDUMP_DENY$ --illegal-access=deny $PROGRAM$</command>54<output regex="no" type="success">System dump written</output>55<!-- check for unexpected core dumps -->56<output regex="no" type="failure">0001.dmp</output>57<exec command="sh" capture="LOGNAME" platforms="zos.*" >58<arg>-c</arg>59<arg>echo $$LOGNAME</arg>60</exec>61</test>6263<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />64<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />65<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />66<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />6768<exec command="cp //'$LOGNAME$.J9CORED.DMP.X001' $DUMPFILE_DENY$" platforms="zos_390-64.*" />69<exec command="cp //'$LOGNAME$.J9CORED.DMP' $DUMPFILE_DENY$" platforms="zos_390-31.*" />70<exec command="tso delete J9CORED.DMP.*" platforms="zos_390-64.*" />71<exec command="tso delete J9CORED.DMP" platforms="zos_390-31.*" />7273<test id="Run !findallmodules">74<command command="$JDMPVIEW_EXE$">75<arg>-core $DUMPFILE$</arg>76<input>!findallmodules</input>77<input>quit</input>78</command>79<output regex="no" type="success">java.base</output>80<output regex="no" type="required">!j9module</output>81<output regex="no" type="failure">DDRInteractiveCommandException</output>82</test>8384<test id="Run !findmodulebyname">85<command command="$JDMPVIEW_EXE$">86<arg>-core $DUMPFILE$</arg>87<input>!findmodulebyname java.base</input>88<input>quit</input>89</command>90<saveoutput regex="no" type="success" saveName="moduleAddr" splitIndex="1" splitBy="!j9module ">!j9module 0x</saveoutput>91<output regex="no" type="required">java.base</output>92<output regex="no" type="required">Found 1 module(s)</output>93<output regex="no" type="failure">DDRInteractiveCommandException</output>9495</test>9697<test id="Verify !findmodulebyname">98<command command="$JDMPVIEW_EXE$">99<arg>-core $DUMPFILE$</arg>100<input>echo $moduleAddr$</input>101<input>!j9module $moduleAddr$</input>102<input>quit</input>103</command>104<output regex="no" type="success">Fields for J9Module:</output>105<output regex="no" type="required">moduleName</output>106<output regex="no" type="required">version</output>107<output regex="no" type="required">readAccessHashTable</output>108<output regex="no" type="failure">DDRInteractiveCommandException</output>109<output regex="no" type="failure"><FAULT></output>110111</test>112113<test id="Run !findmodulebyname find non-existing module">114<command command="$JDMPVIEW_EXE$">115<arg>-core $DUMPFILE$</arg>116<input>!findmodulebyname thisdoesnotexist</input>117<input>quit</input>118</command>119<output regex="no" type="success">thisdoesnotexist</output>120<output regex="no" type="required">Found 0 module(s)</output>121<output regex="no" type="failure">DDRInteractiveCommandException</output>122123</test>124125<test id="Run !dumpmoduleexports">126<command command="$JDMPVIEW_EXE$">127<arg>-core $DUMPFILE$</arg>128<input>!dumpmoduleexports $moduleAddr$</input>129<input>quit</input>130</command>131<output regex="no" type="success">!j9package 0x</output>132<saveoutput regex="no" type="required" saveName="packageAddr" splitIndex="1" splitBy="!j9package ">jdk/internal/vm </saveoutput>133<output regex="no" type="required">sun/net</output>134<output regex="no" type="required">java/util/stream</output>135<output regex="no" type="failure">DDRInteractiveCommandException</output>136137</test>138139<test id="Verify !dumpmoduleexports">140<command command="$JDMPVIEW_EXE$">141<arg>-core $DUMPFILE$</arg>142<input>!j9package $packageAddr$</input>143<input>quit</input>144</command>145<output regex="no" type="success">Fields for J9Package:</output>146<output regex="no" type="required">packageName</output>147<output regex="no" type="required">jdk/internal/vm</output>148<output regex="no" type="required">module</output>149<output regex="no" type="required">exportsHashTable</output>150<output regex="no" type="failure">DDRInteractiveCommandException</output>151<output regex="no" type="failure"><FAULT></output>152153</test>154155<test id="Run !dumpmodulereads">156<command command="$JDMPVIEW_EXE$">157<arg>-core $DUMPFILE$</arg>158<input>!dumpmodulereads $moduleAddr$</input>159<input>quit</input>160</command>161<output regex="no" type="success">!j9module 0x</output>162<saveoutput regex="no" type="required" saveName="readModuleAddr" splitIndex="1" splitBy="!j9module ">openj9.cuda</saveoutput>163<output regex="no" type="required">jdk.net</output>164<output regex="no" type="required">java.se</output>165<output regex="no" type="failure">DDRInteractiveCommandException</output>166167</test>168169<test id="Verify !dumpmodulereads">170<command command="$JDMPVIEW_EXE$">171<arg>-core $DUMPFILE$</arg>172<input>!j9module $readModuleAddr$</input>173<input>quit</input>174</command>175<output regex="no" type="success">Fields for J9Module:</output>176<output regex="no" type="required">moduleName</output>177<output regex="no" type="required">version</output>178<output regex="no" type="required">readAccessHashTable</output>179<output regex="no" type="failure">DDRInteractiveCommandException</output>180<output regex="no" type="failure"><FAULT></output>181182</test>183184<test id="Run !dumpmoduleexports">185<command command="$JDMPVIEW_EXE$">186<arg>-core $DUMPFILE$</arg>187<input>!dumpmoduleexports $moduleAddr$</input>188<input>quit</input>189</command>190<output regex="no" type="success">!j9package 0x</output>191<saveoutput regex="no" type="required" saveName="packageAddr" splitIndex="1" splitBy="!j9package ">jdk/internal/vm </saveoutput>192<output regex="no" type="required">sun/net</output>193<output regex="no" type="required">java/util/stream</output>194<output regex="no" type="failure">DDRInteractiveCommandException</output>195196</test>197198<test id="Verify !dumpmoduleexports">199<command command="$JDMPVIEW_EXE$">200<arg>-core $DUMPFILE$</arg>201<input>!j9package $packageAddr$</input>202<input>quit</input>203</command>204<output regex="no" type="success">Fields for J9Package:</output>205<output regex="no" type="required">packageName</output>206<output regex="no" type="required">jdk/internal/vm</output>207<output regex="no" type="required">module</output>208<output regex="no" type="required">exportsHashTable</output>209<output regex="no" type="failure">DDRInteractiveCommandException</output>210<output regex="no" type="failure"><FAULT></output>211212</test>213214<test id="Run !dumpmodulereads">215<command command="$JDMPVIEW_EXE$">216<arg>-core $DUMPFILE$</arg>217<input>!dumpmodulereads $moduleAddr$</input>218<input>quit</input>219</command>220<output regex="no" type="success">!j9module 0x</output>221<saveoutput regex="no" type="required" saveName="readModuleAddr" splitIndex="1" splitBy="!j9module ">openj9.cuda</saveoutput>222<output regex="no" type="required">jdk.net</output>223<output regex="no" type="required">java.se</output>224<output regex="no" type="failure">DDRInteractiveCommandException</output>225226</test>227228<test id="Verify !dumpmodulereads">229<command command="$JDMPVIEW_EXE$">230<arg>-core $DUMPFILE$</arg>231<input>!j9module $readModuleAddr$</input>232<input>quit</input>233</command>234<output regex="no" type="success">Fields for J9Module:</output>235<output regex="no" type="required">moduleName</output>236<output regex="no" type="required">version</output>237<output regex="no" type="required">readAccessHashTable</output>238<output regex="no" type="failure">DDRInteractiveCommandException</output>239<output regex="no" type="failure"><FAULT></output>240241</test>242243<test id="Run !findallreads">244<command command="$JDMPVIEW_EXE$">245<arg>-core $DUMPFILE$</arg>246<input>!findallreads $readModuleAddr$</input>247<input>quit</input>248</command>249<output regex="no" type="success">!j9module 0x</output>250<output regex="no" type="required">java.base</output>251<output regex="no" type="required">Found 1 module(s)</output>252<output regex="no" type="failure">DDRInteractiveCommandException</output>253254</test>255256<test id="Run !dumpmoduledirectedexports">257<command command="$JDMPVIEW_EXE$">258<arg>-core $DUMPFILE$</arg>259<input>!dumpmoduledirectedexports $packageAddr$</input>260<input>quit</input>261</command>262<output regex="no" type="success">!j9module 0x</output>263<output regex="no" type="required">jdk.management.agent</output>264<output regex="no" type="required">jdk.internal.jvmstat</output>265<output regex="no" type="failure">DDRInteractiveCommandException</output>266267</test>268269<test id="Run !dumpallclassesinmodule">270<command command="$JDMPVIEW_EXE$">271<arg>-core $DUMPFILE$</arg>272<input>!dumpallclassesinmodule $moduleAddr$</input>273<input>quit</input>274</command>275<output regex="no" type="success">!j9class 0x</output>276<output regex="no" type="required">java/lang</output>277<output regex="no" type="required">classes in !j9module</output>278<output regex="no" type="failure">DDRInteractiveCommandException</output>279280</test>281282<!-- Test !findmodules and all options -->283<test id="Run !findmodules">284<command command="$JDMPVIEW_EXE$">285<arg>-core</arg>286<arg>$DUMPFILE$</arg>287<input>!findmodules</input>288<input>quit</input>289</command>290<output regex="no" type="success">java.base</output>291<output regex="no" type="required">!j9module 0x</output>292<output regex="no" type="failure">DDRInteractiveCommandException</output>293</test>294295<test id="Run !findmodules all">296<command command="$JDMPVIEW_EXE$">297<arg>-core</arg>298<arg>$DUMPFILE$</arg>299<input>!findmodules all</input>300<input>quit</input>301</command>302<saveoutput regex="no" type="required" saveName="javaCompilerModuleAddr" splitIndex="1" splitBy="!j9module ">java.compiler</saveoutput>303<output regex="no" type="success">java.base</output>304<output regex="no" type="required">!j9module 0x</output>305<output regex="no" type="failure">DDRInteractiveCommandException</output>306</test>307308<test id="Run !findmodules name --illegal-access=permit">309<command command="$JDMPVIEW_EXE$">310<arg>-core</arg>311<arg>$DUMPFILE$</arg>312<input>!findmodules name java.base</input>313<input>quit</input>314</command>315<saveoutput regex="no" type="success" saveName="javaBaseModuleAddr" splitIndex="1" splitBy="!j9module ">!j9module 0x</saveoutput>316<output regex="no" type="required">java.base</output>317<output regex="no" type="required">Found 1 module</output>318<output regex="no" type="failure">DDRInteractiveCommandException</output>319</test>320321<test id="Run !findmodules name --illegal-access=deny">322<command command="$JDMPVIEW_EXE$">323<arg>-core</arg>324<arg>$DUMPFILE_DENY$</arg>325<input>!findmodules name java.base</input>326<input>quit</input>327</command>328<saveoutput regex="no" type="success" saveName="javaBaseModuleAddrDeny" splitIndex="1" splitBy="!j9module ">!j9module 0x</saveoutput>329<output regex="no" type="required">java.base</output>330<output regex="no" type="required">Found 1 module</output>331<output regex="no" type="failure">DDRInteractiveCommandException</output>332</test>333334<test id="Verify !findmodules name">335<command command="$JDMPVIEW_EXE$">336<arg>-core</arg>337<arg>$DUMPFILE$</arg>338<input>!j9module $javaBaseModuleAddr$</input>339<input>quit</input>340</command>341<output regex="no" type="success">Fields for J9Module:</output>342<output regex="no" type="required">moduleName</output>343<output regex="no" type="required">version</output>344<output regex="no" type="required">readAccessHashTable</output>345<output regex="no" type="failure">DDRInteractiveCommandException</output>346<output regex="no" type="failure"><FAULT></output>347</test>348349<test id="Run !findmodules name on non-existing module">350<command command="$JDMPVIEW_EXE$">351<arg>-core</arg>352<arg>$DUMPFILE$</arg>353<input>!findmodules name thisdoesnotexist</input>354<input>quit</input>355</command>356<output regex="no" type="success">Found 0 modules</output>357<output regex="no" type="failure">!j9module</output>358<output regex="no" type="failure">DDRInteractiveCommandException</output>359</test>360361<test id="Run !findmodules requires">362<command command="$JDMPVIEW_EXE$">363<arg>-core</arg>364<arg>$DUMPFILE$</arg>365<input>!findmodules requires java.base</input>366<input>quit</input>367</command>368<output regex="no" type="success">jdk.compiler</output>369<output regex="no" type="required">!j9module 0x</output>370<output regex="no" type="failure">DDRInteractiveCommandException</output>371</test>372373<test id="Run !findmodules requires on non-existing module">374<command command="$JDMPVIEW_EXE$">375<arg>-core</arg>376<arg>$DUMPFILE$</arg>377<input>!findmodules requires thisdoesnotexist</input>378<input>quit</input>379</command>380<output regex="no" type="success">Found 0 modules</output>381<output regex="no" type="failure">!j9module</output>382<output regex="no" type="failure">DDRInteractiveCommandException</output>383</test>384385<test id="Run !findmodules package">386<command command="$JDMPVIEW_EXE$">387<arg>-core</arg>388<arg>$DUMPFILE$</arg>389<input>!findmodules package java/io</input>390<input>quit</input>391</command>392<output regex="no" type="success">java.base</output>393<output regex="no" type="required">!j9module 0x</output>394<output regex="no" type="required">Found 1 module</output>395<output regex="no" type="failure">DDRInteractiveCommandException</output>396</test>397398<test id="Run !findmodules package on non-existing package">399<command command="$JDMPVIEW_EXE$">400<arg>-core</arg>401<arg>$DUMPFILE$</arg>402<input>!findmodules package thisdoesnotexist</input>403<input>quit</input>404</command>405<output regex="no" type="success">Found 0 modules</output>406<output regex="no" type="failure">!j9module</output>407<output regex="no" type="failure">DDRInteractiveCommandException</output>408</test>409410<test id="Run !findmodules help">411<command command="$JDMPVIEW_EXE$">412<arg>-core</arg>413<arg>$DUMPFILE$</arg>414<input>!findmodules help</input>415<input>quit</input>416</command>417<output regex="no" type="success">Usage:</output>418<output regex="no" type="required">!findmodules all</output>419<output regex="no" type="required">!findmodules name</output>420<output regex="no" type="required">!findmodules requires</output>421<output regex="no" type="required">!findmodules package</output>422<output regex="no" type="failure">Argument failed to parse or was parsed to an unhandled subcommand.</output>423<output regex="no" type="failure">DDRInteractiveCommandException</output>424</test>425426<test id="Run !findmodules with an invalid subcommand">427<command command="$JDMPVIEW_EXE$">428<arg>-core</arg>429<arg>$DUMPFILE$</arg>430<input>!findmodules someInvalidOption</input>431<input>quit</input>432</command>433<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>434<output regex="no" type="required">Usage:</output>435<output regex="no" type="required">!findmodules all</output>436<output regex="no" type="required">!findmodules name</output>437<output regex="no" type="required">!findmodules requires</output>438<output regex="no" type="required">!findmodules package</output>439<output regex="no" type="failure">DDRInteractiveCommandException</output>440</test>441442<test id="Run !findmodules with too many arguments">443<command command="$JDMPVIEW_EXE$">444<arg>-core</arg>445<arg>$DUMPFILE$</arg>446<input>!findmodules multiple options</input>447<input>quit</input>448</command>449<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>450<output regex="no" type="required">Usage:</output>451<output regex="no" type="required">!findmodules all</output>452<output regex="no" type="required">!findmodules name</output>453<output regex="no" type="required">!findmodules requires</output>454<output regex="no" type="required">!findmodules package</output>455<output regex="no" type="failure">DDRInteractiveCommandException</output>456</test>457458<!-- Test !dumpmodule and all options-->459<test id="Run !dumpmodule --illegal-access=permit">460<command command="$JDMPVIEW_EXE$">461<arg>-core</arg>462<arg>$DUMPFILE$</arg>463<input>!dumpmodule $javaBaseModuleAddr$</input>464<input>quit</input>465</command>466<output regex="no" type="success">Module:</output>467<output regex="no" type="required">Exports:</output>468<output regex="no" type="required">Requires:</output>469<output regex="no" type="required">Exports java/nio/file/spi</output>470<output regex="no" type="required">!j9package 0x</output>471<output regex="no" type="required">Exports com/ibm/gpu/spi</output>472<output regex="no" type="required">to openj9.gpu</output>473<output regex="no" type="required">!j9module 0x</output>474<output regex="no" type="required">to ALL-UNNAMED</output>475<output regex="no" type="failure">DDRInteractiveCommandException</output>476</test>477478<!-- Test !dumpmodule and all options-->479<test id="Run !dumpmodule --illegal-access=deny">480<command command="$JDMPVIEW_EXE$">481<arg>-core</arg>482<arg>$DUMPFILE_DENY$</arg>483<input>!dumpmodule $javaBaseModuleAddrDeny$</input>484<input>quit</input>485</command>486<output regex="no" type="success">Module:</output>487<output regex="no" type="required">Exports:</output>488<output regex="no" type="required">Requires:</output>489<output regex="no" type="required">Exports java/nio/file/spi</output>490<output regex="no" type="required">!j9package 0x</output>491<output regex="no" type="required">Exports com/ibm/gpu/spi</output>492<output regex="no" type="required">to openj9.gpu</output>493<output regex="no" type="required">!j9module 0x</output>494<output regex="no" type="failure">to ALL-UNNAMED</output>495<output regex="no" type="failure">DDRInteractiveCommandException</output>496</test>497498<test id="Run !dumpmodule packages">499<command command="$JDMPVIEW_EXE$">500<arg>-core</arg>501<arg>$DUMPFILE$</arg>502<input>!dumpmodule packages $javaBaseModuleAddr$</input>503<input>quit</input>504</command>505<output regex="no" type="success">!j9package 0x</output>506<saveoutput regex="no" type="required" saveName="javaUtilPackageAddr" splitIndex="1" splitBy="!j9package ">java/util </saveoutput>507<output regex="no" type="failure">DDRInteractiveCommandException</output>508</test>509510<test id="Verify !dumpmodule package">511<command command="$JDMPVIEW_EXE$">512<arg>-core</arg>513<arg>$DUMPFILE$</arg>514<input>!j9package $javaUtilPackageAddr$</input>515<input>quit</input>516</command>517<output regex="no" type="success">Fields for J9Package:</output>518<output regex="no" type="required">packageName</output>519<output regex="no" type="required">java/util</output>520<output regex="no" type="required">module</output>521<output regex="no" type="required">exportsHashTable</output>522<output regex="no" type="failure">DDRInteractiveCommandException</output>523<output regex="no" type="failure"><FAULT></output>524</test>525526<test id="Run !dumpmodule classes">527<command command="$JDMPVIEW_EXE$">528<arg>-core</arg>529<arg>$DUMPFILE$</arg>530<input>!dumpmodule classes $javaBaseModuleAddr$</input>531<input>quit</input>532</command>533<output regex="no" type="success">java/lang/Long</output>534<output regex="no" type="required">!j9class 0x</output>535<output regex="no" type="required">java/lang/Integer</output>536<output regex="no" type="failure">DDRInteractiveCommandException</output>537</test>538539<test id="Run !dumpmodule requires">540<command command="$JDMPVIEW_EXE$">541<arg>-core</arg>542<arg>$DUMPFILE$</arg>543<input>!dumpmodule requires $javaCompilerModuleAddr$</input>544<input>quit</input>545</command>546<saveoutput regex="no" type="required" saveName="requiredModuleAddr" splitIndex="1" splitBy="!j9module ">!j9module 0x</saveoutput>547<output regex="no" type="success">!j9module 0x</output>548<output regex="no" type="required">java.base</output>549<output regex="no" type="failure">DDRInteractiveCommandException</output>550</test>551552<test id="Verify !dumpmodule requires">553<command command="$JDMPVIEW_EXE$">554<arg>-core</arg>555<arg>$DUMPFILE$</arg>556<input>!j9module $requiredModuleAddr$</input>557<input>quit</input>558</command>559<output regex="no" type="success">Fields for J9Module:</output>560<output regex="no" type="required">moduleName</output>561<output regex="no" type="required">version</output>562<output regex="no" type="required">readAccessHashTable</output>563<output regex="no" type="failure">DDRInteractiveCommandException</output>564<output regex="no" type="failure"><FAULT></output>565</test>566567<test id="Run !dumpmodule exports --illegal-access=permit">568<command command="$JDMPVIEW_EXE$">569<arg>-core</arg>570<arg>$DUMPFILE$</arg>571<input>!dumpmodule exports $javaBaseModuleAddr$</input>572<input>quit</input>573</command>574<output regex="no" type="success">Exports java/nio/file/spi</output>575<output regex="no" type="required">!j9package 0x</output>576<output regex="no" type="required">Exports com/ibm/gpu/spi</output>577<output regex="no" type="required">to openj9.gpu</output>578<output regex="no" type="required">!j9module 0x</output>579<output regex="no" type="required">to ALL-UNNAMED</output>580<saveoutput regex="no" type="required" saveName="limitedExportPackage" splitIndex="1" splitBy="!j9package ">com/ibm/gpu/spi </saveoutput>581<output regex="no" type="failure">DDRInteractiveCommandException</output>582</test>583584<test id="Run !dumpmodule exports --illegal-access=deny">585<command command="$JDMPVIEW_EXE$">586<arg>-core</arg>587<arg>$DUMPFILE_DENY$</arg>588<input>!dumpmodule exports $javaBaseModuleAddrDeny$</input>589<input>quit</input>590</command>591<output regex="no" type="success">Exports java/nio/file/spi</output>592<output regex="no" type="required">!j9package 0x</output>593<output regex="no" type="required">Exports com/ibm/gpu/spi</output>594<output regex="no" type="required">to openj9.gpu</output>595<output regex="no" type="required">!j9module 0x</output>596<output regex="no" type="failure">to ALL-UNNAMED</output>597<saveoutput regex="no" type="required" saveName="limitedExportPackageDeny" splitIndex="1" splitBy="!j9package ">com/ibm/gpu/spi </saveoutput>598<output regex="no" type="failure">DDRInteractiveCommandException</output>599</test>600601<test id="Verify !dumpmodule exports">602<command command="$JDMPVIEW_EXE$">603<arg>-core</arg>604<arg>$DUMPFILE$</arg>605<input>!j9package $javaUtilPackageAddr$</input>606<input>quit</input>607</command>608<output regex="no" type="success">Fields for J9Package:</output>609<output regex="no" type="required">packageName</output>610<output regex="no" type="required">module</output>611<output regex="no" type="required">exportsHashTable</output>612<output regex="no" type="failure">DDRInteractiveCommandException</output>613<output regex="no" type="failure"><FAULT></output>614</test>615616<test id="Run !dumpmodule help">617<command command="$JDMPVIEW_EXE$">618<arg>-core</arg>619<arg>$DUMPFILE$</arg>620<input>!dumpmodule help</input>621<input>quit</input>622</command>623<output regex="no" type="success">Usage:</output>624<output regex="no" type="required">!dumpmodule all</output>625<output regex="no" type="required">!dumpmodule requires</output>626<output regex="no" type="required">!dumpmodule exports</output>627<output regex="no" type="required">!dumpmodule classes</output>628<output regex="no" type="required">!dumpmodule packages</output>629<output regex="no" type="failure">Argument failed to parse or was parsed to an unhandled subcommand.</output>630<output regex="no" type="failure">DDRInteractiveCommandException</output>631</test>632633<test id="Run !dumpmodule with an invalid subcommand">634<command command="$JDMPVIEW_EXE$">635<arg>-core</arg>636<arg>$DUMPFILE$</arg>637<input>!dumpmodule someInvalidOption $javaBaseModuleAddr$</input>638<input>quit</input>639</command>640<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>641<output regex="no" type="required">Usage:</output>642<output regex="no" type="required">!dumpmodule all</output>643<output regex="no" type="required">!dumpmodule requires</output>644<output regex="no" type="required">!dumpmodule exports</output>645<output regex="no" type="required">!dumpmodule classes</output>646<output regex="no" type="required">!dumpmodule packages</output>647<output regex="no" type="failure">DDRInteractiveCommandException</output>648</test>649650<test id="Run !dumpmodule with too many arguments">651<command command="$JDMPVIEW_EXE$">652<arg>-core</arg>653<arg>$DUMPFILE$</arg>654<input>!dumpmodule too many options</input>655<input>quit</input>656</command>657<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>658<output regex="no" type="required">Usage:</output>659<output regex="no" type="required">!dumpmodule all</output>660<output regex="no" type="required">!dumpmodule requires</output>661<output regex="no" type="required">!dumpmodule exports</output>662<output regex="no" type="required">!dumpmodule classes</output>663<output regex="no" type="required">!dumpmodule packages</output>664<output regex="no" type="failure">DDRInteractiveCommandException</output>665</test>666667<test id="Run !dumpmodule with a non-numeric module address">668<command command="$JDMPVIEW_EXE$">669<arg>-core</arg>670<arg>$DUMPFILE$</arg>671<input>!dumpmodule NotANumber</input>672<input>quit</input>673</command>674<output regex="no" type="success">Problem running command:</output>675<output regex="no" type="required">The argument "NotANumber" is not a valid number. It should be the address of a J9Module.</output>676</test>677678<test id="Run !dumpmodule with an invalid module address">679<command command="$JDMPVIEW_EXE$">680<arg>-core</arg>681<arg>$DUMPFILE$</arg>682<input>!dumpmodule 0x0</input>683<input>quit</input>684</command>685<output regex="no" type="success">Memory Fault reading 0x</output>686<output regex="no" type="required">Problem running command:</output>687<output regex="no" type="required">The argument "0x0" is not the address of a valid J9Module.</output>688</test>689690<!-- Test !dumppackage and all options-->691<test id="Run !dumppackage on a globally exported package">692<command command="$JDMPVIEW_EXE$">693<arg>-core</arg>694<arg>$DUMPFILE$</arg>695<input>!dumppackage $javaUtilPackageAddr$</input>696<input>quit</input>697</command>698<output regex="no" type="success">Package is exported to all</output>699<output regex="no" type="failure">DDRInteractiveCommandException</output>700</test>701702<test id="Run !dumppackage on a package exported to specific modules">703<command command="$JDMPVIEW_EXE$">704<arg>-core</arg>705<arg>$DUMPFILE$</arg>706<input>!dumppackage $limitedExportPackage$</input>707<input>quit</input>708</command>709<output regex="no" type="required">Exported to:</output>710<output regex="no" type="success">openj9.gpu</output>711<output regex="no" type="required">!j9module </output>712<output regex="no" type="failure">DDRInteractiveCommandException</output>713</test>714715<test id="Run !dumppackage classes">716<command command="$JDMPVIEW_EXE$">717<arg>-core</arg>718<arg>$DUMPFILE$</arg>719<input>!dumppackage classes $javaUtilPackageAddr$</input>720<input>quit</input>721</command>722<saveoutput regex="no" type="success" saveName="queueClassAddr" splitIndex="1" splitBy="!j9class ">java/util/Queue</saveoutput>723<output regex="no" type="required">!j9class 0x</output>724<output regex="no" type="failure">DDRInteractiveCommandException</output>725</test>726727<test id="Verify !dumppackage classes">728<command command="$JDMPVIEW_EXE$">729<arg>-core</arg>730<arg>$DUMPFILE$</arg>731<input>!j9class $queueClassAddr$</input>732<input>quit</input>733</command>734<output regex="no" type="success">J9Class at 0x</output>735<output regex="no" type="required">Fields for J9Class:</output>736<output regex="no" type="required">Class name: java/util/Queue</output>737<output regex="no" type="required">packageID</output>738<output regex="no" type="failure">DDRInteractiveCommandException</output>739<output regex="no" type="failure"><FAULT></output>740</test>741742<test id="Run !dumppackage help">743<command command="$JDMPVIEW_EXE$">744<arg>-core</arg>745<arg>$DUMPFILE$</arg>746<input>!dumppackage help</input>747<input>quit</input>748</command>749<output regex="no" type="success">Usage:</output>750<output regex="no" type="required">!dumppackage all</output>751<output regex="no" type="required">!dumppackage exportsTo</output>752<output regex="no" type="required">!dumppackage classes</output>753<output regex="no" type="failure">Argument failed to parse or was parsed to an unhandled subcommand.</output>754<output regex="no" type="failure">DDRInteractiveCommandException</output>755</test>756757<test id="Run !dumppackage with an invalid subcommand">758<command command="$JDMPVIEW_EXE$">759<arg>-core</arg>760<arg>$DUMPFILE$</arg>761<input>!dumppackage someInvalidOption $javaUtilPackageAddr$</input>762<input>quit</input>763</command>764<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>765<output regex="no" type="required">Usage:</output>766<output regex="no" type="required">!dumppackage all</output>767<output regex="no" type="required">!dumppackage exportsTo</output>768<output regex="no" type="required">!dumppackage classes</output>769<output regex="no" type="failure">DDRInteractiveCommandException</output>770</test>771772<test id="Run !dumppackage with too many arguments">773<command command="$JDMPVIEW_EXE$">774<arg>-core</arg>775<arg>$DUMPFILE$</arg>776<input>!dumppackage too many options</input>777<input>quit</input>778</command>779<output regex="no" type="success">Argument failed to parse or was parsed to an unhandled subcommand.</output>780<output regex="no" type="required">Usage:</output>781<output regex="no" type="required">!dumppackage all</output>782<output regex="no" type="required">!dumppackage exportsTo</output>783<output regex="no" type="required">!dumppackage classes</output>784<output regex="no" type="failure">DDRInteractiveCommandException</output>785</test>786787<test id="Run !dumppackage with a non-numeric package address">788<command command="$JDMPVIEW_EXE$">789<arg>-core</arg>790<arg>$DUMPFILE$</arg>791<input>!dumppackage NotANumber</input>792<input>quit</input>793</command>794<output regex="no" type="success">Problem running command:</output>795<output regex="no" type="required">The argument "NotANumber" is not a valid number. It should be the address of a J9Package.</output>796</test>797798<test id="Run !dumppackage with an invalid package address">799<command command="$JDMPVIEW_EXE$">800<arg>-core</arg>801<arg>$DUMPFILE$</arg>802<input>!dumppackage 0x0</input>803<input>quit</input>804</command>805<output regex="no" type="success">Memory Fault reading 0x</output>806<output regex="no" type="required">Problem running command:</output>807</test>808</suite>809810811