Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8362533

Tests sun/management/jmxremote/bootstrap/* duplicate VM flags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 26
    • core-svc

      The tests in
      sun/management/jmxremote/bootstrap/*
      use ProcessTools with java vm options and also manually add the same jvm flags.
      See example:
         16
         17 private static boolean doTest(String testId, String arg) throws Exception {
         18 List<String> args = new ArrayList<>();
         19 args.add("-XX:+UsePerfData");
         20 Collections.addAll(args, Utils.getTestJavaOpts());
         21 args.add("-cp");
         22 args.add(TEST_CLASSPATH);
         23
         24 if (arg != null) {
         25 args.add(arg);
         26 }
         27 args.add("TestApplication");
         28 ProcessBuilder server = ProcessTools.createTestJavaProcessBuilder(
         29 args.toArray(new String[args.size()])
         30 );

            korov Lei Zhu
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: