Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/StorageKey/storageKey.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2016, 2020 IBM Corp. and others
5
This program and the accompanying materials are made available under
6
the terms of the Eclipse Public License 2.0 which accompanies this
7
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
8
or the Apache License, Version 2.0 which accompanies this distribution and
9
is available at https://www.apache.org/licenses/LICENSE-2.0.
10
This Source Code may also be made available under the following
11
Secondary Licenses when the conditions for such availability set
12
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
General Public License, version 2 with the GNU Classpath
14
Exception [1] and GNU General Public License, version 2 with the
15
OpenJDK Assembly Exception [2].
16
[1] https://www.gnu.org/software/classpath/license.html
17
[2] http://openjdk.java.net/legal/assembly-exception.html
18
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
19
-->
20
21
<!DOCTYPE suite SYSTEM "cmdlinetester.dtd">
22
23
<suite id="J9 Shared Classes z/OS Storage Key Command-Line Option Tests" timeout="2400">
24
<variable name="CLASS" value="-cp $UTILSJAR$ VMBench.FibBench" />
25
26
<test id="Attempt to destroy any pre-existing cache created in storage protection key 2">
27
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey2,storageKey=2,destroy</command>
28
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
29
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
30
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
31
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
32
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
33
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
34
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
35
</test>
36
37
<test id="Create a cache in storage protection key = 2">
38
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey2,storageKey=2 $CLASS$</command>
39
<output regex="no" type="success">Fibonacci: iterations</output>
40
<output regex="no" type="required">j9prt.1033 - Trc_PRT_shmem_j9shmem_createSharedMemory_storageKey</output>
41
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
42
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
43
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
44
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
45
</test>
46
47
<test id="Attempt to open a cache created in storage protection key 2 while running in storage key 8">
48
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey2,storageKey=8</command>
49
<output regex="no" type="success">JVMPORT034W Attempted to attach shared memory created in storage protection key 2, but currently running in key 8.</output>
50
<output regex="no" type="required">JVMSHRC336E Port layer error code = -525038</output>
51
<output regex="no" type="required">j9prt.1034 - Trc_PRT_shmem_j9shmem_openSharedMemory_storageKey</output>
52
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
53
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
54
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
55
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
56
</test>
57
58
<test id="Attempt to destroy cache created in storage protection key 2">
59
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey2,storageKey=2,destroy</command>
60
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
61
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
62
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
63
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
64
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
65
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
66
</test>
67
68
<test id="Attempt to destroy any pre-existing cache created in storage protection key 9">
69
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey9,storageKey=9,destroy</command>
70
<output type="success" caseSensitive="yes" regex="no">Cache does not exist</output>
71
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
72
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
73
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
74
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
75
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
76
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
77
</test>
78
79
<test id="Create a cache in storage protection key = 9">
80
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey9,storageKey=9 $CLASS$</command>
81
<output regex="no" type="success">Fibonacci: iterations</output>
82
<output regex="no" type="required">j9prt.1033 - Trc_PRT_shmem_j9shmem_createSharedMemory_storageKey</output>
83
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
84
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
85
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
86
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
87
</test>
88
89
<test id="Attempt to open a cache created in storage protection key 9 while running in storage key 8">
90
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey9,storageKey=8 $CLASS$</command>
91
<output regex="no" type="success">Fibonacci: iterations</output>
92
<output regex="no" type="required">j9prt.1034 - Trc_PRT_shmem_j9shmem_openSharedMemory_storageKey: Shared classes cache was created in storage protection key = 9 and the current key = 8</output>
93
<output regex="no" type="required">j9shr.2041 - OSCache::Cache is switched to readonly mode due to storage protection key incompatibility</output>
94
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
95
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
96
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
97
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
98
</test>
99
100
<test id="Attempt to destroy cache created in storage protection key 9">
101
<command>$EXE$ -Xtrace:print={j9prt.1033-1035} -Xtrace:print={j9shr.2041} -Xshareclasses:nonpersistent,name=testSCstorageKey9,storageKey=9,destroy</command>
102
<output type="success" caseSensitive="yes" regex="no">has been destroyed</output>
103
<output type="success" caseSensitive="yes" regex="no">is destroyed</output>
104
<output type="failure" caseSensitive="no" regex="no">Unhandled Exception</output>
105
<output type="failure" caseSensitive="yes" regex="no">Exception:</output>
106
<output type="failure" caseSensitive="no" regex="no">corrupt</output>
107
<output type="failure" caseSensitive="yes" regex="no">Processing dump event</output>
108
</test>
109
110
111
</suite>
112