8243621: use SkippedException in compiler/jsr292/MHInlineTest.java test

Reviewed-by: thartmann
This commit is contained in:
Igor Ignatyev 2020-04-27 09:16:11 -07:00
parent 83a6527e44
commit a075c328e4

View File

@ -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)");
}
}