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

run-test: missing -nativepath option in the consolidated repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 10
    • infrastructure
    • None

      run-test from the consolidated repo (http://hg.openjdk.java.net/jdk10/consol-proto) fails to run test with native libs, the jtreg option -nativepath is missing.

      See example:

      $ cd consol-proto; make run-test TEST="jtreg:test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java"

      ...
      Running test 'jtreg:test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java'
      --------------------------------------------------
      TEST: java/lang/String/nativeEncoding/StringPlatformChars.java
      TEST JDK: /Users/admin/OpenJDK/consol-proto/build/macosx-x86_64-normal-server-release/images/jdk

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.001 seconds
      messages:
      command: build StringPlatformChars
      reason: Named class compiled on demand
      elapsed time (seconds): 0.001

      TEST RESULT: Error. Use -nativepath to specify the location of native code
      --------------------------------------------------
      Test results: error: 1


      With make -n run-test, I can see the real jtreg options used in the run, and there's no "-nativepath" option.

            erikj Erik Joelsson
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: