Skip to content

Commit b68872c

Browse files
author
duke
committed
Backport 799ac5288efbbb89e21319cd45657c8f817ad680
1 parent 1eed4ba commit b68872c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/hotspot/jtreg/gc/epsilon/TestDieDefault.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
2+
* Copyright (c) 2017, 2025, Red Hat, Inc. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,13 +37,13 @@
3737
public class TestDieDefault {
3838

3939
public static void passWith(String... args) throws Exception {
40-
OutputAnalyzer out = ProcessTools.executeLimitedTestJava(args);
40+
OutputAnalyzer out = ProcessTools.executeTestJava(args);
4141
out.shouldNotContain("OutOfMemoryError");
4242
out.shouldHaveExitValue(0);
4343
}
4444

4545
public static void failWith(String... args) throws Exception {
46-
OutputAnalyzer out = ProcessTools.executeLimitedTestJava(args);
46+
OutputAnalyzer out = ProcessTools.executeTestJava(args);
4747
out.shouldContain("OutOfMemoryError");
4848
if (out.getExitValue() == 0) {
4949
throw new IllegalStateException("Should have failed with non-zero exit code");

test/hotspot/jtreg/gc/epsilon/TestDieWithHeapDump.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
2+
* Copyright (c) 2017, 2025, Red Hat, Inc. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -38,13 +38,13 @@
3838
public class TestDieWithHeapDump {
3939

4040
public static void passWith(String... args) throws Exception {
41-
OutputAnalyzer out = ProcessTools.executeLimitedTestJava(args);
41+
OutputAnalyzer out = ProcessTools.executeTestJava(args);
4242
out.shouldNotContain("OutOfMemoryError");
4343
out.shouldHaveExitValue(0);
4444
}
4545

4646
public static void failWith(String... args) throws Exception {
47-
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(args);
47+
ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(args);
4848
Process p = pb.start();
4949
OutputAnalyzer out = new OutputAnalyzer(p);
5050
out.shouldContain("OutOfMemoryError");

test/hotspot/jtreg/gc/epsilon/TestDieWithOnError.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
2+
* Copyright (c) 2017, 2025, Red Hat, Inc. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,14 +39,14 @@ public class TestDieWithOnError {
3939
static String ON_ERR_MSG = "Epsilon error handler message";
4040

4141
public static void passWith(String... args) throws Exception {
42-
OutputAnalyzer out = ProcessTools.executeLimitedTestJava(args);
42+
OutputAnalyzer out = ProcessTools.executeTestJava(args);
4343
out.shouldNotContain("OutOfMemoryError");
4444
out.stdoutShouldNotMatch("^" + ON_ERR_MSG);
4545
out.shouldHaveExitValue(0);
4646
}
4747

4848
public static void failWith(String... args) throws Exception {
49-
OutputAnalyzer out = ProcessTools.executeLimitedTestJava(args);
49+
OutputAnalyzer out = ProcessTools.executeTestJava(args);
5050
out.shouldContain("OutOfMemoryError");
5151
if (out.getExitValue() == 0) {
5252
throw new IllegalStateException("Should have failed with non-zero exit code");

0 commit comments

Comments
 (0)