mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 12:55:07 +00:00
8243621: use SkippedException in compiler/jsr292/MHInlineTest.java test
Reviewed-by: thartmann
This commit is contained in:
parent
83a6527e44
commit
a075c328e4
@ -28,13 +28,14 @@
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @library /test/lib /
|
||||
*
|
||||
* @run main/othervm compiler.jsr292.MHInlineTest
|
||||
* @run driver compiler.jsr292.MHInlineTest
|
||||
*/
|
||||
|
||||
package compiler.jsr292;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jtreg.SkippedException;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
@ -64,6 +65,8 @@ public class MHInlineTest {
|
||||
analyzer.shouldContain("compiler.jsr292.MHInlineTest$B::private_x (3 bytes) inline (hot)");
|
||||
analyzer.shouldContain("compiler.jsr292.MHInlineTest$B::private_static_x (3 bytes) inline (hot)");
|
||||
analyzer.shouldContain("compiler.jsr292.MHInlineTest$A::package_static_x (3 bytes) inline (hot)");
|
||||
} else {
|
||||
throw new SkippedException("The test is applicable only to C2 (present in Server VM)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user