Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/lazyClassLoadingTest/lazyClassLoading.xml
6004 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
3
<!--
4
Copyright (c) 2004, 2018 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
<!-- Verify correct operation of lazy classloading with empty (i.e. unused) classloaders. -->
28
29
<!-- These are intentionally run as separate tests to ensure the JNI library is loaded -->
30
<!-- cleanly each time and no state information is mistakenly held over from prior test -->
31
<!-- cases. -->
32
33
<!-- See Design 61796: Lazy initialization of J9ClassLoader. -->
34
<!-- https://jtcjazz.ottawa.ibm.com:9443/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/61796 -->
35
36
<!-- See also: VM_Common/lazyclassloadtest -->
37
<!-- See also: j9vm_test/j9vm/test/classloader -->
38
39
<suite id="Lazy classloading tests" timeout="60">
40
<test id="testJniDefineClass">
41
<!-- DefineClass on EmptyClassLoader within a JNI call. -->
42
<command>$EXE$ -classpath $Q$$J9JAR$$Q$ j9vm.test.classloader.LazyClassLoaderInitTest testJniDefineClass</command>
43
<output regex="yes" type="success">.*Test PASSED*</output>
44
<output regex="yes" type="failure">.*Test FAILED*</output>
45
</test>
46
<test id="testJvmtiCountLoadedClasses">
47
<!-- Verify EmptyClassLoader has loaded 0 classes using JVMTI. -->
48
<command>$EXE$ -classpath $Q$$J9JAR$$Q$ j9vm.test.classloader.LazyClassLoaderInitTest testJvmtiCountLoadedClasses</command>
49
<output regex="yes" type="success">.*Test PASSED*</output>
50
<output regex="yes" type="failure">.*Test FAILED*</output>
51
</test>
52
<test id="testJvmFindClass">
53
<!-- Find Object class using internal JVM_FindClassFromClassLoader. -->
54
<command>$EXE$ -classpath $Q$$J9JAR$$Q$ j9vm.test.classloader.LazyClassLoaderInitTest testJvmFindClass</command>
55
<output regex="yes" type="success">.*Test PASSED*</output>
56
<output regex="yes" type="failure">.*Test FAILED*</output>
57
</test>
58
</suite>
59
60