diff test/compiler/whitebox/SetDontInlineMethodTest.java @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents f9a4b59ae350
children 52b4284cb496
line wrap: on
line diff
--- a/test/compiler/whitebox/SetDontInlineMethodTest.java	Tue Apr 01 14:09:03 2014 +0200
+++ b/test/compiler/whitebox/SetDontInlineMethodTest.java	Tue Apr 01 13:57:07 2014 +0200
@@ -27,17 +27,19 @@
  * @library /testlibrary /testlibrary/whitebox
  * @build SetDontInlineMethodTest
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* SetDontInlineMethodTest
+ * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,TestCase$Helper::* SetDontInlineMethodTest
  * @summary testing of WB::testSetDontInlineMethod()
  * @author igor.ignatyev@oracle.com
  */
 public class SetDontInlineMethodTest extends CompilerWhiteBoxTest {
 
     public static void main(String[] args) throws Exception {
-        CompilerWhiteBoxTest.main(SetDontInlineMethodTest::new, args);
+        for (TestCase test : TestCase.values()) {
+            new SetDontInlineMethodTest(test).runTest();
+        }
     }
 
-    private SetDontInlineMethodTest(TestCase testCase) {
+    public SetDontInlineMethodTest(TestCase testCase) {
         super(testCase);
     }