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(..)

Reviewed-by: cjplummer
  • Loading branch information
lmesnik committed Aug 25, 2023
1 parent f139f30 commit 7342f5a
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
Expand Down Expand Up @@ -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");
Expand All @@ -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 {
Expand Down

3 comments on commit 7342f5a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on 7342f5a Dec 18, 2023

Choose a reason for hiding this comment

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

/backport jdk21u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 7342f5a Dec 18, 2023

Choose a reason for hiding this comment

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

@GoeLin the backport was successfully created on the branch backport-GoeLin-7342f5a0 in my personal fork of openjdk/jdk21u-dev. To create a pull request with this backport targeting openjdk/jdk21u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 7342f5a0 from the openjdk/jdk repository.

The commit being backported was authored by Leonid Mesnik on 25 Aug 2023 and was reviewed by Chris Plummer.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk21u-dev:

$ git fetch https://github.com/openjdk-bots/jdk21u-dev.git backport-GoeLin-7342f5a0:backport-GoeLin-7342f5a0
$ git checkout backport-GoeLin-7342f5a0
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk21u-dev.git backport-GoeLin-7342f5a0

Please sign in to comment.