Skip to content
Permalink
Browse files
8268544: some runtime/sealedClasses tests should be run in driver mode
Reviewed-by: hseigel
  • Loading branch information
iignatev committed Jun 10, 2021
1 parent f4b3170 commit 6c552a7b42e73174343280d46bd72d730c42b5c5
@@ -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 static void main(String argv[]) throws Exception {
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 static void main(String argv[]) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(javaArgs1);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotContain("processing of -javaagent failed");
output.shouldHaveExitValue(0);
}
}
}

1 comment on commit 6c552a7

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 6c552a7 Jun 10, 2021

Please sign in to comment.