Skip to content

Commit 88e8f69

Browse files
committed
8330535: Update nsk/jdb tests to use driver instead of othervm
Backport-of: 4417c276e484c1fe137ed7f4a7c28709d0c99af2
1 parent 5486e42 commit 88e8f69

File tree

69 files changed

+210
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+210
-477
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jdb/caught_exception/caught_exception002/caught_exception002.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -46,7 +46,7 @@
4646
* @library /vmTestbase
4747
* /test/lib
4848
* @build nsk.jdb.caught_exception.caught_exception002.caught_exception002a
49-
* @run main/othervm
49+
* @run driver
5050
* nsk.jdb.caught_exception.caught_exception002.caught_exception002
5151
* -arch=${os.family}-${os.simpleArch}
5252
* -waittime=5
@@ -69,14 +69,10 @@
6969
public class caught_exception002 extends JdbTest {
7070

7171
public static void main (String argv[]) {
72-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
73-
}
74-
75-
public static int run(String argv[], PrintStream out) {
7672
debuggeeClass = DEBUGGEE_CLASS;
7773
firstBreak = FIRST_BREAK;
7874
lastBreak = LAST_BREAK;
79-
return new caught_exception002().runTest(argv, out);
75+
new caught_exception002().runTest(argv);
8076
}
8177

8278
static final String PACKAGE_NAME = "nsk.jdb.caught_exception.caught_exception002";

test/hotspot/jtreg/vmTestbase/nsk/jdb/classes/classes001/classes001.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -37,7 +37,7 @@
3737
* @library /vmTestbase
3838
* /test/lib
3939
* @build nsk.jdb.classes.classes001.classes001a
40-
* @run main/othervm
40+
* @run driver
4141
* nsk.jdb.classes.classes001.classes001
4242
* -arch=${os.family}-${os.simpleArch}
4343
* -waittime=5
@@ -60,14 +60,10 @@
6060
public class classes001 extends JdbTest {
6161

6262
public static void main (String argv[]) {
63-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
64-
}
65-
66-
public static int run(String argv[], PrintStream out) {
6763
debuggeeClass = DEBUGGEE_CLASS;
6864
firstBreak = FIRST_BREAK;
6965
lastBreak = LAST_BREAK;
70-
return new classes001().runTest(argv, out);
66+
new classes001().runTest(argv);
7167
}
7268

7369
static final String PACKAGE_NAME = "nsk.jdb.classes.classes001";

test/hotspot/jtreg/vmTestbase/nsk/jdb/classpath/classpath001/classpath001.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -36,7 +36,7 @@
3636
* @library /vmTestbase
3737
* /test/lib
3838
* @build nsk.jdb.classpath.classpath001.classpath001a
39-
* @run main/othervm
39+
* @run driver
4040
* nsk.jdb.classpath.classpath001.classpath001
4141
* -arch=${os.family}-${os.simpleArch}
4242
* -waittime=5
@@ -59,14 +59,10 @@
5959
public class classpath001 extends JdbTest {
6060

6161
public static void main (String argv[]) {
62-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
63-
}
64-
65-
public static int run(String argv[], PrintStream out) {
6662
debuggeeClass = DEBUGGEE_CLASS;
6763
firstBreak = FIRST_BREAK;
6864
lastBreak = LAST_BREAK;
69-
return new classpath001().runTest(argv, out);
65+
new classpath001().runTest(argv);
7066
}
7167

7268
static final String PACKAGE_NAME = "nsk.jdb.classpath.classpath001";

test/hotspot/jtreg/vmTestbase/nsk/jdb/clear/clear002/clear002.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -38,7 +38,7 @@
3838
* @library /vmTestbase
3939
* /test/lib
4040
* @build nsk.jdb.clear.clear002.clear002a
41-
* @run main/othervm
41+
* @run driver
4242
* nsk.jdb.clear.clear002.clear002
4343
* -arch=${os.family}-${os.simpleArch}
4444
* -waittime=5
@@ -61,14 +61,10 @@
6161
public class clear002 extends JdbTest {
6262

6363
public static void main (String argv[]) {
64-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
65-
}
66-
67-
public static int run(String argv[], PrintStream out) {
6864
debuggeeClass = DEBUGGEE_CLASS;
6965
firstBreak = FIRST_BREAK;
7066
lastBreak = LAST_BREAK;
71-
return new clear002().runTest(argv, out);
67+
new clear002().runTest(argv);
7268
}
7369

7470
static final String PACKAGE_NAME = "nsk.jdb.clear.clear002";

test/hotspot/jtreg/vmTestbase/nsk/jdb/clear/clear003/clear003.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 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
@@ -39,7 +39,7 @@
3939
* @library /vmTestbase
4040
* /test/lib
4141
* @build nsk.jdb.clear.clear003.clear003a
42-
* @run main/othervm
42+
* @run driver
4343
* nsk.jdb.clear.clear003.clear003
4444
* -arch=${os.family}-${os.simpleArch}
4545
* -waittime=5
@@ -62,14 +62,10 @@
6262
public class clear003 extends JdbTest {
6363

6464
public static void main (String argv[]) {
65-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
66-
}
67-
68-
public static int run(String argv[], PrintStream out) {
6965
debuggeeClass = DEBUGGEE_CLASS;
7066
firstBreak = FIRST_BREAK;
7167
lastBreak = LAST_BREAK;
72-
return new clear003().runTest(argv, out);
68+
new clear003().runTest(argv);
7369
}
7470

7571
static final String PACKAGE_NAME = "nsk.jdb.clear.clear003";

test/hotspot/jtreg/vmTestbase/nsk/jdb/clear/clear004/clear004.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @library /vmTestbase
4141
* /test/lib
4242
* @build nsk.jdb.clear.clear004.clear004a
43-
* @run main/othervm
43+
* @run driver
4444
* nsk.jdb.clear.clear004.clear004
4545
* -arch=${os.family}-${os.simpleArch}
4646
* -waittime=5
@@ -63,14 +63,10 @@
6363
public class clear004 extends JdbTest {
6464

6565
public static void main (String argv[]) {
66-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
67-
}
68-
69-
public static int run(String argv[], PrintStream out) {
7066
debuggeeClass = DEBUGGEE_CLASS;
7167
firstBreak = FIRST_BREAK;
7268
lastBreak = LAST_BREAK;
73-
return new clear004().runTest(argv, out);
69+
new clear004().runTest(argv);
7470
}
7571

7672
static final String PACKAGE_NAME = "nsk.jdb.clear.clear004";

test/hotspot/jtreg/vmTestbase/nsk/jdb/down/down002/down002.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -43,7 +43,7 @@
4343
* @library /vmTestbase
4444
* /test/lib
4545
* @build nsk.jdb.down.down002.down002a
46-
* @run main/othervm
46+
* @run driver
4747
* nsk.jdb.down.down002.down002
4848
* -arch=${os.family}-${os.simpleArch}
4949
* -waittime=5
@@ -66,14 +66,10 @@
6666
public class down002 extends JdbTest {
6767

6868
public static void main (String argv[]) {
69-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
70-
}
71-
72-
public static int run(String argv[], PrintStream out) {
7369
debuggeeClass = DEBUGGEE_CLASS;
7470
firstBreak = FIRST_BREAK;
7571
lastBreak = LAST_BREAK;
76-
return new down002().runTest(argv, out);
72+
new down002().runTest(argv);
7773
}
7874

7975
static final String PACKAGE_NAME = "nsk.jdb.down.down002";

test/hotspot/jtreg/vmTestbase/nsk/jdb/dump/dump002/dump002.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, 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
@@ -47,7 +47,7 @@
4747
* @library /vmTestbase
4848
* /test/lib
4949
* @build nsk.jdb.dump.dump002.dump002a
50-
* @run main/othervm
50+
* @run driver
5151
* nsk.jdb.dump.dump002.dump002
5252
* -arch=${os.family}-${os.simpleArch}
5353
* -waittime=5
@@ -70,15 +70,11 @@
7070
public class dump002 extends JdbTest {
7171

7272
public static void main (String argv[]) {
73-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
74-
}
75-
76-
public static int run(String argv[], PrintStream out) {
7773
debuggeeClass = DEBUGGEE_CLASS;
7874
firstBreak = FIRST_BREAK;
7975
lastBreak = LAST_BREAK;
8076
compoundPromptIdent = COMPOUND_PROMPT_IDENT;
81-
return new dump002().runTest(argv, out);
77+
new dump002().runTest(argv);
8278
}
8379

8480
static final String PACKAGE_NAME = "nsk.jdb.dump.dump002";

test/hotspot/jtreg/vmTestbase/nsk/jdb/eval/eval001/eval001.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -52,7 +52,7 @@
5252
* @clean nsk.jdb.eval.eval001.eval001a
5353
* @compile -g:lines,source,vars eval001a.java
5454
*
55-
* @run main/othervm
55+
* @run driver
5656
* nsk.jdb.eval.eval001.eval001
5757
* -arch=${os.family}-${os.simpleArch}
5858
* -waittime=5
@@ -75,14 +75,10 @@
7575
public class eval001 extends JdbTest {
7676

7777
public static void main (String argv[]) {
78-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
79-
}
80-
81-
public static int run(String argv[], PrintStream out) {
8278
debuggeeClass = DEBUGGEE_CLASS;
8379
firstBreak = FIRST_BREAK;
8480
lastBreak = LAST_BREAK;
85-
return new eval001().runTest(argv, out);
81+
new eval001().runTest(argv);
8682
}
8783

8884
static final String PACKAGE_NAME = "nsk.jdb.eval.eval001";

test/hotspot/jtreg/vmTestbase/nsk/jdb/exclude/exclude001/exclude001.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2024, 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
@@ -59,7 +59,7 @@
5959
* @library /vmTestbase
6060
* /test/lib
6161
* @build nsk.jdb.exclude.exclude001.exclude001a
62-
* @run main/othervm/timeout=600
62+
* @run driver/timeout=600
6363
* nsk.jdb.exclude.exclude001.exclude001
6464
* -arch=${os.family}-${os.simpleArch}
6565
* -waittime=10
@@ -82,14 +82,10 @@
8282
public class exclude001 extends JdbTest {
8383

8484
public static void main (String argv[]) {
85-
System.exit(run(argv, System.out) + JCK_STATUS_BASE);
86-
}
87-
88-
public static int run(String argv[], PrintStream out) {
8985
debuggeeClass = DEBUGGEE_CLASS;
9086
firstBreak = FIRST_BREAK;
9187
lastBreak = LAST_BREAK;
92-
return new exclude001().runTest(argv, out);
88+
new exclude001().runTest(argv);
9389
}
9490

9591
static final String PACKAGE_NAME = "nsk.jdb.exclude.exclude001";

0 commit comments

Comments
 (0)