Skip to content

Commit 5ce77fa

Browse files
committed
Adapt additional calls
1 parent bcb907b commit 5ce77fa

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

test/hotspot/jtreg/compiler/c2/Test8062950.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
public class Test8062950 {
3737
private static final String CLASSNAME = "DoesNotExist";
3838
public static void main(String[] args) throws Exception {
39-
ProcessTools.executeTestJvm("-Xcomp",
40-
"-XX:-TieredCompilation",
41-
"-XX:-UseOptoBiasInlining",
42-
CLASSNAME)
39+
ProcessTools.executeTestJava("-Xcomp",
40+
"-XX:-TieredCompilation",
41+
"-XX:-UseOptoBiasInlining",
42+
CLASSNAME)
4343
.shouldHaveExitValue(1)
4444
.shouldContain("Error: Could not find or load main class " + CLASSNAME)
4545
.shouldNotContain("A fatal error has been detected")

test/hotspot/jtreg/runtime/jni/checked/TestCheckedEnsureLocalCapacity.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public static void main(String[] args) throws Throwable {
6565
}
6666

6767
// No warning
68-
ProcessTools.executeTestJvm("-Xcheck:jni",
69-
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
70-
"TestCheckedEnsureLocalCapacity",
71-
Integer.toString(testArgs[0][0]),
72-
Integer.toString(testArgs[0][1])).
68+
ProcessTools.executeTestJava("-Xcheck:jni",
69+
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
70+
"TestCheckedEnsureLocalCapacity",
71+
Integer.toString(testArgs[0][0]),
72+
Integer.toString(testArgs[0][1])).
7373
shouldHaveExitValue(0).
7474
// check no capacity warning
7575
stdoutShouldNotMatch(EXCEED_WARNING).
@@ -78,11 +78,11 @@ public static void main(String[] args) throws Throwable {
7878
reportDiagnosticSummary();
7979

8080
// Warning
81-
ProcessTools.executeTestJvm("-Xcheck:jni",
82-
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
83-
"TestCheckedEnsureLocalCapacity",
84-
Integer.toString(testArgs[1][0]),
85-
Integer.toString(testArgs[1][1])).
81+
ProcessTools.executeTestJava("-Xcheck:jni",
82+
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
83+
"TestCheckedEnsureLocalCapacity",
84+
Integer.toString(testArgs[1][0]),
85+
Integer.toString(testArgs[1][1])).
8686
shouldHaveExitValue(0).
8787
// check for capacity warning
8888
stdoutShouldMatch(EXCEED_WARNING).

test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/extcallback/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public class Test {
4242

4343
public static void main(String[] args) throws Exception {
44-
ProcessTools.executeTestJvm("-agentlib:extcallback", Test1.class.getName())
44+
ProcessTools.executeTestJava("-agentlib:extcallback", Test1.class.getName())
4545
.shouldHaveExitValue(0)
4646
.shouldContain("callbackClassUnload called");
4747
}

test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanTestCheckJni.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public class DcmdMBeanTestCheckJni {
4646

4747
public static void main(String[] args) throws Exception {
48-
OutputAnalyzer out = ProcessTools.executeTestJvm(
48+
OutputAnalyzer out = ProcessTools.executeTestJava(
4949
"-Xcheck:jni",
5050
DcmdMBeanRunner.class.getName());
5151
out.shouldNotMatch("WARNING: JNI local refs: \\d+, exceeds capacity: \\d+\\s+" +

0 commit comments

Comments
 (0)