Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/dumpromtests/dumpromclasstests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2011, 2021 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
26
27
<suite id="jdmpview tests" timeout="600">
28
29
<variable name="CP_HANOI" value="-cp $UTILSJAR$" />
30
<variable name="CP_GENERALTEST" value="-cp $Q$$GENERAL_TEST_DIR$/GeneralTest.jar$Q$" />
31
<variable name="PROGRAM_HANOI" value="org.openj9.test.ivj.Hanoi 2" />
32
<variable name="PROGRAM_TATC" value="org.openj9.test.typeAnnotation.TypeAnnotatedTestClass" />
33
<variable name="AGENTLIB" value="-agentlib:jvmtitest=test:rtc001" />
34
<variable name="DUMPFILE" value="j9core.dmp" />
35
<variable name="DUMPDIR" value="dumpdir" />
36
<variable name="XDUMP" value="-Xdump:system:file=$DUMPFILE$,events=vmstop" />
37
38
<!-- override the -Xdump command on z/OS -->
39
<variable name="XDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />
40
41
<test id="Create core file">
42
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
43
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
44
<exec command="rm -f $DUMPFILE$" />
45
<command>$EXE$ -Xmx4m $AGENTLIB$ $CP_HANOI$ $XDUMP$ $PROGRAM_HANOI$</command>
46
<output regex="no" type="success">Moved disk 0 to 1</output>
47
<output regex="no" type="success">System dump written</output>
48
<!-- check for unexpected core dumps -->
49
<output regex="no" type="failure">0001.dmp</output>
50
</test>
51
52
<test id="Run !dumpallromclasslinear 2 - with BCI agent core">
53
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
54
<arg>-c</arg>
55
<arg>echo $$LOGNAME</arg>
56
</exec>
57
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />
58
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />
59
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
60
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
61
<command command="$JDMPVIEW_EXE$">
62
<arg>-core $DUMPFILE$</arg>
63
<input>!dumpallromclasslinear 2</input>
64
<input>quit</input>
65
</command>
66
<output regex="no" type="success">java/lang/Object</output>
67
<output regex="yes" type="required" javaUtilPattern="yes" caseSensitive="yes" >(.)*intermediateClassData(.)*0x[0-9a-fA-F]*</output>
68
<output regex="no" type="failure">DDRInteractiveCommandException</output>
69
<output regex="no" type="failure">Unable to read size of ROMClass at</output>
70
<output regex="no" type="failure">Unable to read object clazz at</output>
71
<output regex="no" type="failure">could not read</output>
72
<output regex="no" type="failure">dump event</output>
73
</test>
74
75
76
<test id="Create core file with type annotations">
77
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
78
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
79
<exec command="rm -f $DUMPFILE$" />
80
<command>$EXE$ -Xmx4m $AGENTLIB$ $CP_GENERALTEST$ $XDUMP$ $PROGRAM_TATC$</command>
81
<output regex="no" type="success">@com.ibm.tests.typeAnnotation.TestAnn(site=classAnnotation)</output>
82
<output regex="no" type="success">System dump written</output>
83
<!-- check for unexpected core dumps -->
84
<output regex="no" type="failure">0001.dmp</output>
85
</test>
86
87
<test id="Dump ROM method and check for type annotations">
88
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
89
<arg>-c</arg>
90
<arg>echo $$LOGNAME</arg>
91
</exec>
92
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />
93
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />
94
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
95
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
96
<command command="$JDMPVIEW_EXE$">
97
<arg>-core $DUMPFILE$</arg>
98
<input>!dumprommethod org/openj9/test/typeAnnotation/TypeAnnotatedTestClass.myTryCatch</input>
99
<input>quit</input>
100
</command>
101
<output regex="no" type="success">Method Type Annotations</output>
102
<output regex="yes" type="required" javaUtilPattern="yes" caseSensitive="yes" >(.)*Code Type Annotations(.)*0x[0-9a-fA-F]*</output>
103
<output regex="no" type="failure">DDRInteractiveCommandException</output>
104
<output regex="no" type="failure">unable to read</output>
105
<output regex="no" type="failure">could not read</output>
106
<output regex="no" type="failure">dump event</output>
107
</test>
108
</suite>
109
110
111
112