Skip to content

Commit

Permalink
8314333: Update com/sun/jdi/ProcessAttachTest.java to use ProcessTool…
Browse files Browse the repository at this point in the history
…s.createTestJvm(..)

Backport-of: 7342f5a0337df88b6787c4c2b53c8007667b6636
GoeLin committed Oct 8, 2024
1 parent 9629286 commit 1b4ae74
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/jdk/com/sun/jdi/ProcessAttachTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -58,8 +58,6 @@ public static void main(String args[]) throws Exception {

public class ProcessAttachTest {

public static final String TESTCLASSES = System.getProperty("test.classes");

public static void main(String[] args) throws Exception {

System.out.println("Test 1: Debuggee start with suspend=n");
@@ -71,9 +69,8 @@ public static void main(String[] args) throws Exception {
}

private static void runTest(String jdwpArg) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
ProcessBuilder pb = ProcessTools.createTestJvm(
jdwpArg,
"-classpath", TESTCLASSES,
"ProcessAttachTestTarg");
Process p = null;
try {

1 comment on commit 1b4ae74

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.