Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/sigabrtHandlingTest/sigabrtHandlingTest.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2020, 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="SIGABRT Handling Tests" timeout="2400">
28
<variable name="CP" value="-cp $Q$$RESJAR$$Q$ VMBench.GPTests.GPTest" />
29
30
<!--
31
The system, JIT, snap and heap dumps are disabled to reduce the memory footprint of
32
the tests. Only a Java dump will be generated when the JVM abort handler is invoked.
33
This should be sufficient to test the -XX:[+|-]HandleSIGABRT option.
34
-->
35
<variable name="DUMP" value="-Xdump:system+heap+snap+jit:none" />
36
<variable name="LIMT_HEAPSIZE" value="-Xmx20m" />
37
<variable name="NON_WINDOWS_PLATFORMS" value="aix.*,linux.*,zos.*,osx.*" />
38
<variable name="WINDOWS_PLATFORMS" value="win.*" />
39
40
<test id="Default">
41
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ $CP$ abort</command>
42
<output type="success" regex="no">Processing dump event "abort"</output>
43
<output type="required" regex="no">Processed dump event "abort"</output>
44
</test>
45
46
<test id="-XX:+HandleSIGABRT">
47
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT $CP$ abort</command>
48
<output type="success" regex="no">Processing dump event "abort"</output>
49
<output type="required" regex="no">Processed dump event "abort"</output>
50
</test>
51
52
<test id="-XX:-HandleSIGABRT -XX:+HandleSIGABRT">
53
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -XX:+HandleSIGABRT $CP$ abort</command>
54
<output type="success" regex="no">Processing dump event "abort"</output>
55
<output type="required" regex="no">Processed dump event "abort"</output>
56
</test>
57
58
<test id="-XX:-HandleSIGABRT" platforms="$WINDOWS_PLATFORMS$">
59
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT $CP$ abort</command>
60
<output type="success" regex="no">Invoking abort!</output>
61
<output type="failure" regex="no">Processing dump event "abort"</output>
62
</test>
63
64
<test id="-XX:-HandleSIGABRT" platforms="$NON_WINDOWS_PLATFORMS$">
65
<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT $CP$ abort'</command>
66
<output type="success" regex="no">Invoking abort!</output>
67
<output type="failure" regex="no">Processing dump event "abort"</output>
68
</test>
69
70
<test id="-XX:+HandleSIGABRT -XX:-HandleSIGABRT" platforms="$WINDOWS_PLATFORMS$">
71
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -XX:-HandleSIGABRT $CP$ abort</command>
72
<output type="success" regex="no">Invoking abort!</output>
73
<output type="failure" regex="no">Processing dump event "abort"</output>
74
</test>
75
76
<test id="-XX:+HandleSIGABRT -XX:-HandleSIGABRT" platforms="$NON_WINDOWS_PLATFORMS$">
77
<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -XX:-HandleSIGABRT $CP$ abort'</command>
78
<output type="success" regex="no">Invoking abort!</output>
79
<output type="failure" regex="no">Processing dump event "abort"</output>
80
</test>
81
82
<test id="-XX:+HandleSIGABRT -Xrs">
83
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -Xrs $CP$ abort</command>
84
<output type="success" regex="no">-XX:+HandleSIGABRT is not supported with -Xrs</output>
85
<output type="failure" regex="no">Invoking abort!</output>
86
<output type="failure" regex="no">Processing dump event "abort"</output>
87
</test>
88
89
<test id="-XX:+HandleSIGABRT -Xrs:sync">
90
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:+HandleSIGABRT -Xrs:sync $CP$ abort</command>
91
<output type="success" regex="no">-XX:+HandleSIGABRT is not supported with -Xrs</output>
92
<output type="failure" regex="no">Invoking abort!</output>
93
<output type="failure" regex="no">Processing dump event "abort"</output>
94
</test>
95
96
<test id="-Xrs" platforms="$WINDOWS_PLATFORMS$">
97
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -Xrs $CP$ abort</command>
98
<output type="success" regex="no">Invoking abort!</output>
99
<output type="failure" regex="no">Processing dump event "abort"</output>
100
</test>
101
102
<test id="-Xrs" platforms="$NON_WINDOWS_PLATFORMS$">
103
<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -Xrs $CP$ abort'</command>
104
<output type="success" regex="no">Invoking abort!</output>
105
<output type="failure" regex="no">Processing dump event "abort"</output>
106
</test>
107
108
<test id="-XX:-HandleSIGABRT -Xrs" platforms="$WINDOWS_PLATFORMS$">
109
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs $CP$ abort</command>
110
<output type="success" regex="no">Invoking abort!</output>
111
<output type="failure" regex="no">Processing dump event "abort"</output>
112
</test>
113
114
<test id="-XX:-HandleSIGABRT -Xrs" platforms="$NON_WINDOWS_PLATFORMS$">
115
<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs $CP$ abort'</command>
116
<output type="success" regex="no">Invoking abort!</output>
117
<output type="failure" regex="no">Processing dump event "abort"</output>
118
</test>
119
120
<test id="-XX:-HandleSIGABRT -Xrs:sync" platforms="$WINDOWS_PLATFORMS$">
121
<command>$EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs:sync $CP$ abort</command>
122
<output type="success" regex="no">Invoking abort!</output>
123
<output type="failure" regex="no">Processing dump event "abort"</output>
124
</test>
125
126
<test id="-XX:-HandleSIGABRT -Xrs:sync" platforms="$NON_WINDOWS_PLATFORMS$">
127
<command>bash -c 'ulimit -c 0 ; $EXE$ $LIMT_HEAPSIZE$ $DUMP$ -XX:-HandleSIGABRT -Xrs:sync $CP$ abort'</command>
128
<output type="success" regex="no">Invoking abort!</output>
129
<output type="failure" regex="no">Processing dump event "abort"</output>
130
</test>
131
132
<!-- Remove any core file created by the OS -->
133
<exec command="bash -c 'rm core.*'" />
134
135
</suite>
136
137