Commit 6c552a7 1 parent f4b3170 commit 6c552a7 Copy full SHA for 6c552a7
File tree 2 files changed +6
-4
lines changed
test/hotspot/jtreg/runtime/sealedClasses
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 31
31
* @modules java.instrument
32
32
* @requires vm.jvmti
33
33
* @compile RedefinePermittedSubclass.java
34
- * @run main/othervm RedefinePermittedSubclass buildagent
35
- * @run main/othervm /timeout=6000 RedefinePermittedSubclass runtest
34
+ * @run driver RedefinePermittedSubclass buildagent
35
+ * @run driver /timeout=6000 RedefinePermittedSubclass runtest
36
36
*/
37
37
38
38
import java .io .FileNotFoundException ;
@@ -128,6 +128,7 @@ public static void main(String argv[]) throws Exception {
128
128
ProcessBuilder pb = ProcessTools .createJavaProcessBuilder (javaArgs1 );
129
129
OutputAnalyzer output = new OutputAnalyzer (pb .start ());
130
130
output .shouldNotContain ("processing of -javaagent failed" );
131
+ output .shouldHaveExitValue (0 );
131
132
}
132
133
}
133
134
}
Original file line number Diff line number Diff line change 30
30
* @modules java.instrument
31
31
* @requires vm.jvmti
32
32
* @compile RedefineSealedClass.java
33
- * @run main/othervm RedefineSealedClass buildagent
34
- * @run main/othervm /timeout=6000 RedefineSealedClass runtest
33
+ * @run driver RedefineSealedClass buildagent
34
+ * @run driver /timeout=6000 RedefineSealedClass runtest
35
35
*/
36
36
37
37
import java .io .FileNotFoundException ;
@@ -110,6 +110,7 @@ public static void main(String argv[]) throws Exception {
110
110
ProcessBuilder pb = ProcessTools .createJavaProcessBuilder (javaArgs1 );
111
111
OutputAnalyzer output = new OutputAnalyzer (pb .start ());
112
112
output .shouldNotContain ("processing of -javaagent failed" );
113
+ output .shouldHaveExitValue (0 );
113
114
}
114
115
}
115
116
}
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Jun 10, 2021
Review
Issues