Path: blob/master/test/functional/cmdLineTests/dumpromtests/dumpromclasstests.xml
6004 views
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>12<!--3Copyright (c) 2011, 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<suite id="jdmpview tests" timeout="600">2728<variable name="CP_HANOI" value="-cp $UTILSJAR$" />29<variable name="CP_GENERALTEST" value="-cp $Q$$GENERAL_TEST_DIR$/GeneralTest.jar$Q$" />30<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />31<variable name="PROGRAM_TATC" value="org.openj9.test.typeAnnotation.TypeAnnotatedTestClass" />32<variable name="AGENTLIB" value="-agentlib:jvmtitest=test:rtc001" />33<variable name="DUMPFILE" value="j9core.dmp" />34<variable name="DUMPDIR" value="dumpdir" />35<variable name="XDUMP" value="-Xdump:system:file=$DUMPFILE$,events=vmstop" />3637<!-- override the -Xdump command on z/OS -->38<variable name="XDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />3940<test id="Create core file">41<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />42<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />43<exec command="rm -f $DUMPFILE$" />44<command>$EXE$ -Xmx4m $AGENTLIB$ $CP_HANOI$ $XDUMP$ $PROGRAM_HANOI$</command>45<output regex="no" type="success">Moved disk 0 to 1</output>46<output regex="no" type="success">System dump written</output>47<!-- check for unexpected core dumps -->48<output regex="no" type="failure">0001.dmp</output>49</test>5051<test id="Run !dumpallromclasslinear 2 - with BCI agent core">52<exec command="sh" capture="LOGNAME" platforms="zos.*" >53<arg>-c</arg>54<arg>echo $$LOGNAME</arg>55</exec>56<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />57<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />58<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />59<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />60<command command="$JDMPVIEW_EXE$">61<arg>-core $DUMPFILE$</arg>62<input>!dumpallromclasslinear 2</input>63<input>quit</input>64</command>65<output regex="no" type="success">java/lang/Object</output>66<output regex="yes" type="required" javaUtilPattern="yes" caseSensitive="yes" >(.)*intermediateClassData(.)*0x[0-9a-fA-F]*</output>67<output regex="no" type="failure">DDRInteractiveCommandException</output>68<output regex="no" type="failure">Unable to read size of ROMClass at</output>69<output regex="no" type="failure">Unable to read object clazz at</output>70<output regex="no" type="failure">could not read</output>71<output regex="no" type="failure">dump event</output>72</test>737475<test id="Create core file with type annotations">76<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />77<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />78<exec command="rm -f $DUMPFILE$" />79<command>$EXE$ -Xmx4m $AGENTLIB$ $CP_GENERALTEST$ $XDUMP$ $PROGRAM_TATC$</command>80<output regex="no" type="success">@com.ibm.tests.typeAnnotation.TestAnn(site=classAnnotation)</output>81<output regex="no" type="success">System dump written</output>82<!-- check for unexpected core dumps -->83<output regex="no" type="failure">0001.dmp</output>84</test>8586<test id="Dump ROM method and check for type annotations">87<exec command="sh" capture="LOGNAME" platforms="zos.*" >88<arg>-c</arg>89<arg>echo $$LOGNAME</arg>90</exec>91<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />92<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />93<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />94<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />95<command command="$JDMPVIEW_EXE$">96<arg>-core $DUMPFILE$</arg>97<input>!dumprommethod org/openj9/test/typeAnnotation/TypeAnnotatedTestClass.myTryCatch</input>98<input>quit</input>99</command>100<output regex="no" type="success">Method Type Annotations</output>101<output regex="yes" type="required" javaUtilPattern="yes" caseSensitive="yes" >(.)*Code Type Annotations(.)*0x[0-9a-fA-F]*</output>102<output regex="no" type="failure">DDRInteractiveCommandException</output>103<output regex="no" type="failure">unable to read</output>104<output regex="no" type="failure">could not read</output>105<output regex="no" type="failure">dump event</output>106</test>107</suite>108109110111112