Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/gcCheck/gcchecktests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2018, 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
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
25
26
<suite id="J9 gccheck Tests" timeout="600">
27
28
<variable name="CP" value="-cp $RESJAR$" />
29
<variable name="PROGRAM" value="org.openj9.test.nogc.Main" />
30
<variable name="DUMPFILE" value="j9core.dmp" />
31
<variable name="DUMPDIR" value="dumpdir" />
32
<variable name="XDUMP" value="-Xdump:system:file=$DUMPFILE$,events=vmstop,request=exclusive+compact" />
33
34
<!-- override the -Xdump command on z/OS -->
35
<variable name="XDUMP" value="-Xdump:system:opts=IEATDUMP,dsn=%uid.J9CORE.DMP,events=vmstop,request=exclusive+compact" platforms="zos.*" />
36
37
<test id="Create core file">
38
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
39
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
40
<exec command="rm -f $DUMPFILE$" />
41
<command>$EXE$ -Xmx256m $CP$ $XDUMP$ $PROGRAM$</command>
42
<output regex="no" type="success">System dump written</output>
43
<output regex="no" type="required">GCCheck Main class executed successfully</output>
44
</test>
45
46
<test id="Run gccheck">
47
<exec command="sh" capture="LOGNAME" platforms="zos.*" >
48
<arg>-c</arg>
49
<arg>echo $$LOGNAME</arg>
50
</exec>
51
<exec command="cp //'$LOGNAME$.J9CORE.DMP.X001' $DUMPFILE$" platforms="zos_390-64.*" />
52
<exec command="cp //'$LOGNAME$.J9CORE.DMP' $DUMPFILE$" platforms="zos_390-31.*" />
53
<exec command="tso delete J9CORE.DMP.*" platforms="zos_390-64.*" />
54
<exec command="tso delete J9CORE.DMP" platforms="zos_390-31.*" />
55
<command command="$JDMPVIEW_EXE$">
56
<arg>-core $DUMPFILE$</arg>
57
<input>!gccheck</input>
58
<input>quit</input>
59
</command>
60
<output regex="no" type="success">Checking HEAP...done</output>
61
<output regex="no" type="failure">gc check</output>
62
<output regex="no" type="failure">unable to read</output>
63
<output regex="no" type="failure">Exception</output>
64
</test>
65
</suite>
66
67
68