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

[TESTBUG] runtime/CommandLine/IgnoreUnrecognizedVMOptions fails in jdk9/dev

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b96

      Running runtime/CommandLine/IgnoreUnrecognizedVMOptions test against clean jdk9/dev fails in both local build, and JPRT.

      $ rm -rf JT*; jtreg -jdk:/home/shade/trunks/jdk9-dev/build/linux-x86_64-normal-server-release/images/jdk/ runtime/CommandLine/IgnoreUnrecognizedVMOptions.java
      java.lang.RuntimeException: Expected to get exit value of [1]

      Apparently fails when trying to do:
          runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:+FlightRecorder", "-version");

      Indeed, running this command line manually produces the zero exit code:

      $ /home/shade/trunks/jdk9-dev/build/linux-x86_64-normal-server-release/images/jdk/bin/java -XX:+IgnoreUnrecognizedVMOptions -XX:-UnlockCommercialFeatures -XX:+FlightRecorder -version
      openjdk version "1.9.0-internal"
      OpenJDK Runtime Environment (build 1.9.0-internal-shade_2015_11_23_21_41-b00)
      OpenJDK 64-Bit Server VM (build 1.9.0-internal-shade_2015_11_23_21_41-b00, mixed mode)

      $ echo $?
      0

      This makes projects in development to always fail JPRT. jdk9/sandbox is synced with jdk9/dev, so many projects there picked up this failure.

            dholmes David Holmes
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: