< prev index next >

test/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsBase.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 import jdk.test.lib.*;
  26 import jdk.test.lib.cli.*;
  27 




  28 import java.util.function.BooleanSupplier;
  29 
  30 public abstract class TestPrintPreciseRTMLockingStatisticsBase
  31         extends RTMGenericCommandLineOptionTest {
  32     protected static final String DEFAULT_VALUE = "false";
  33 
  34     protected TestPrintPreciseRTMLockingStatisticsBase(
  35             BooleanSupplier predicate) {
  36         super(predicate, "PrintPreciseRTMLockingStatistics", true, false,
  37                 TestPrintPreciseRTMLockingStatisticsBase.DEFAULT_VALUE);
  38     }
  39 
  40     @Override
  41     protected void runNonX86TestCases() throws Throwable {
  42         verifyJVMStartup();
  43         verifyOptionValues();
  44     }
  45 
  46     @Override
  47     protected void verifyJVMStartup() throws Throwable {




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package compiler.rtm.cli;

  26 
  27 import jdk.test.lib.ExitCode;
  28 import jdk.test.lib.Platform;
  29 import jdk.test.lib.cli.CommandLineOptionTest;
  30 
  31 import java.util.function.BooleanSupplier;
  32 
  33 public abstract class TestPrintPreciseRTMLockingStatisticsBase
  34         extends RTMGenericCommandLineOptionTest {
  35     protected static final String DEFAULT_VALUE = "false";
  36 
  37     protected TestPrintPreciseRTMLockingStatisticsBase(
  38             BooleanSupplier predicate) {
  39         super(predicate, "PrintPreciseRTMLockingStatistics", true, false,
  40                 TestPrintPreciseRTMLockingStatisticsBase.DEFAULT_VALUE);
  41     }
  42 
  43     @Override
  44     protected void runNonX86TestCases() throws Throwable {
  45         verifyJVMStartup();
  46         verifyOptionValues();
  47     }
  48 
  49     @Override
  50     protected void verifyJVMStartup() throws Throwable {


< prev index next >