8268544: some runtime/sealedClasses tests should be run in driver mode
Reviewed-by: hseigel
This commit is contained in:
parent
f4b3170197
commit
6c552a7b42
test/hotspot/jtreg/runtime/sealedClasses
@ -31,8 +31,8 @@
|
||||
* @modules java.instrument
|
||||
* @requires vm.jvmti
|
||||
* @compile RedefinePermittedSubclass.java
|
||||
* @run main/othervm RedefinePermittedSubclass buildagent
|
||||
* @run main/othervm/timeout=6000 RedefinePermittedSubclass runtest
|
||||
* @run driver RedefinePermittedSubclass buildagent
|
||||
* @run driver/timeout=6000 RedefinePermittedSubclass runtest
|
||||
*/
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
@ -128,6 +128,7 @@ public class RedefinePermittedSubclass {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(javaArgs1);
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldNotContain("processing of -javaagent failed");
|
||||
output.shouldHaveExitValue(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,8 +30,8 @@
|
||||
* @modules java.instrument
|
||||
* @requires vm.jvmti
|
||||
* @compile RedefineSealedClass.java
|
||||
* @run main/othervm RedefineSealedClass buildagent
|
||||
* @run main/othervm/timeout=6000 RedefineSealedClass runtest
|
||||
* @run driver RedefineSealedClass buildagent
|
||||
* @run driver/timeout=6000 RedefineSealedClass runtest
|
||||
*/
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
@ -110,6 +110,7 @@ public class RedefineSealedClass {
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(javaArgs1);
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldNotContain("processing of -javaagent failed");
|
||||
output.shouldHaveExitValue(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user