test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Sdiff test/hotspot/jtreg/runtime/CommandLine

test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java

Print this page




  86         output.shouldHaveExitValue(0);
  87         String match = getDeprecationString(option);
  88         output.shouldMatch(match);
  89     }
  90 
  91     // Deprecated experimental command line options need to be preceded on the
  92     // command line by -XX:+UnlockExperimentalVMOption.
  93     static void testDeprecatedExperimental(String option, String value)  throws Throwable {
  94         String XXoption = CommandLineOptionTest.prepareFlag(option, value);
  95         ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(
  96             CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, XXoption, "-version");
  97         OutputAnalyzer output = new OutputAnalyzer(processBuilder.start());
  98         // check for option deprecation message:
  99         output.shouldHaveExitValue(0);
 100         String match = getDeprecationString(option);
 101         output.shouldMatch(match);
 102     }
 103 
 104     public static void main(String[] args) throws Throwable {
 105         testDeprecated(DEPRECATED_OPTIONS);  // Make sure that each deprecated option is mentioned in the output.
 106         testDeprecatedDiagnostic("IgnoreUnverifiableClassesDuringDump", "false");
 107     }
 108 }


  86         output.shouldHaveExitValue(0);
  87         String match = getDeprecationString(option);
  88         output.shouldMatch(match);
  89     }
  90 
  91     // Deprecated experimental command line options need to be preceded on the
  92     // command line by -XX:+UnlockExperimentalVMOption.
  93     static void testDeprecatedExperimental(String option, String value)  throws Throwable {
  94         String XXoption = CommandLineOptionTest.prepareFlag(option, value);
  95         ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(
  96             CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, XXoption, "-version");
  97         OutputAnalyzer output = new OutputAnalyzer(processBuilder.start());
  98         // check for option deprecation message:
  99         output.shouldHaveExitValue(0);
 100         String match = getDeprecationString(option);
 101         output.shouldMatch(match);
 102     }
 103 
 104     public static void main(String[] args) throws Throwable {
 105         testDeprecated(DEPRECATED_OPTIONS);  // Make sure that each deprecated option is mentioned in the output.

 106     }
 107 }
test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File