Skip to content

Commit 35d2293

Browse files
committedApr 6, 2023
8305607: Remove some unused test parameters in com/sun/jdi tests
Reviewed-by: sspitsyn, amenkov, cjplummer
1 parent 5764119 commit 35d2293

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed
 

‎test/jdk/com/sun/jdi/AllLineLocations.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. 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
@@ -31,7 +31,7 @@
3131
* @run compile -g RefTypes.java
3232
* @run build AllLineLocations
3333
*
34-
* @run driver AllLineLocations RefTypes
34+
* @run driver AllLineLocations
3535
*/
3636
import com.sun.jdi.*;
3737
import com.sun.jdi.event.*;

‎test/jdk/com/sun/jdi/ClassesByName.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. 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
@@ -32,7 +32,7 @@
3232
* @run compile -g HelloWorld.java
3333
* @run build ClassesByName
3434
*
35-
* @run driver ClassesByName HelloWorld
35+
* @run driver ClassesByName
3636
*/
3737
import com.sun.jdi.*;
3838
import com.sun.jdi.event.*;
@@ -52,7 +52,7 @@ public static void main(String args[]) throws Exception {
5252
}
5353

5454
protected void runTests() throws Exception {
55-
startUp("ClassesByName");
55+
startUp("HelloWorld");
5656

5757
List all = vm().allClasses();
5858
for (Iterator it = all.iterator(); it.hasNext(); ) {

‎test/jdk/com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. 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
@@ -216,8 +216,6 @@ public class TestNestmateAttr extends TestScaffold {
216216
protected void startUp(String targetName) {
217217
List<String> argList = new ArrayList<>(Arrays.asList(args));
218218
argList.add(0, targetName); // pre-pend so it becomes the first "app" arg
219-
// We need the class path that contains the path to jdk.test.lib.Asserts.
220-
argList.add(0, " -cp " + System.getProperty("test.class.path"));
221219
println("run args: " + argList);
222220
connect((String[]) argList.toArray(args));
223221
waitForVMStart();

‎test/jdk/com/sun/jdi/UnpreparedByName.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. 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
@@ -32,7 +32,7 @@
3232
* @run compile -g InnerTarg.java
3333
* @run build UnpreparedByName
3434
*
35-
* @run driver UnpreparedByName InnerTarg
35+
* @run driver UnpreparedByName
3636
*/
3737
import com.sun.jdi.*;
3838
import com.sun.jdi.event.*;

‎test/jdk/com/sun/jdi/UnpreparedClasses.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. 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
@@ -32,7 +32,7 @@
3232
* @run compile -g InnerTarg.java
3333
* @run build UnpreparedClasses
3434
*
35-
* @run driver UnpreparedClasses InnerTarg
35+
* @run driver UnpreparedClasses
3636
*/
3737
import com.sun.jdi.*;
3838
import com.sun.jdi.event.*;

0 commit comments

Comments
 (0)
Please sign in to comment.