Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/gcRegressionTests/gcRotatingVerboseLogTests.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2001, 2022 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="J9 GC Rotating Verbose Log Tests" timeout="900">
28
29
<!-- Arguments used in all tests -->
30
<variable name="CP" value="-cp $TESTSJARPATH$" />
31
<variable name="XINT" value="-Xint" />
32
33
<test id="GC rotating verbose log file name contains %s">
34
<exec command="rm foo*.*" />
35
<exec command="$EXE$ $XINT$ -verbose:gc -Xms8m -Xmx8m -Xverbosegclog:foo%s%s%s%s%s%s,5,1 $CP$ com.ibm.tests.garbagecollector.SpinAllocate 5" />
36
<!-- check a file with name foo%s%s%s%s%s%s.003 is created -->
37
<command>cat foo%s%s%s%s%s%s.003</command>
38
<output regex="no" type="failure">No such file or directory</output>
39
<output regex="no" type="success">&lt;/verbosegc&gt;</output>
40
</test>
41
42
<test id="GC rotating verbose log file name contains %s and other random symbols">
43
<exec command="rm foo*.*" />
44
<exec command="$EXE$ $XINT$ -verbose:gc -Xms8m -Xmx8m -Xverbosegclog:foo%s%s%s%s%s%s1234567%s%s%s%s%s%s!@%^*%s%s%s%s%s%sabcdef.#,5,1 $CP$ com.ibm.tests.garbagecollector.SpinAllocate 5" />
45
<!-- check a file with name foo%s%s%s%s%s%s1234567%s%s%s%s%s%s!@%^*%s%s%s%s%s%sabcdef.003 is created -->
46
<command>cat foo%s%s%s%s%s%s1234567%s%s%s%s%s%s!@%^*%s%s%s%s%s%sabcdef.003</command>
47
<output regex="no" type="failure">No such file or directory</output>
48
<output regex="no" type="success">&lt;/verbosegc&gt;</output>
49
</test>
50
51
<test id="GC rotating verbose log file name contains %s %c %i">
52
<exec command="rm foo*.*" />
53
<exec command="$EXE$ $XINT$ -verbose:gc -Xms8m -Xmx8m -Xverbosegclog:foo%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%i,5,1 $CP$ com.ibm.tests.garbagecollector.SpinAllocate 5" />
54
<!-- check a file with name foo%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%i.003 is created -->
55
<command>cat foo%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%i.003</command>
56
<output regex="no" type="failure">No such file or directory</output>
57
<output regex="no" type="success">&lt;/verbosegc&gt;</output>
58
</test>
59
60
<test id="GC rotating verbose log file name contains %s %c %i and other random symbols">
61
<exec command="rm foo*.*" />
62
<exec command="$EXE$ $XINT$ -verbose:gc -Xms8m -Xmx8m -Xverbosegclog:foo%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%i1234567!@%^*%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%isabcdef.#,5,1 $CP$ com.ibm.tests.garbagecollector.SpinAllocate 5" />
63
<!-- check a file with name foo%s%s%s%s%s%s1234567%s%s%s%s%s%s!@%^*%s%s%s%s%s%sabcdef.003 is created -->
64
<command>cat foo%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%i1234567!@%^*%s%s%s%s%s%s%c%c%c%c%c%i%i%i%i%isabcdef.003</command>
65
<output regex="no" type="failure">No such file or directory</output>
66
<output regex="no" type="success">&lt;/verbosegc&gt;</output>
67
</test>
68
</suite>
69
70