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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: None
    • Component/s: infrastructure
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          Hide
          amlu Amy Lu added a comment - - edited
          For jdk10 repo, this works fine and test pass.
          $ cd jdk10; make run-test TEST="jtreg:jdk/test/java/lang/String/nativeEncoding/StringPlatformChars.java"

          Passed: java/lang/String/nativeEncoding/StringPlatformChars.java

          But run-test for the same test in the consolidated repo, Error
          $ cd consol-proto; make run-test TEST="jtreg:test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java"

          TEST RESULT: Error. Use -nativepath to specify the location of native code
          Show
          amlu Amy Lu added a comment - - edited For jdk10 repo, this works fine and test pass. $ cd jdk10; make run-test TEST="jtreg:jdk/test/java/lang/String/nativeEncoding/StringPlatformChars.java" Passed: java/lang/String/nativeEncoding/StringPlatformChars.java But run-test for the same test in the consolidated repo, Error $ cd consol-proto; make run-test TEST="jtreg:test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java" TEST RESULT: Error. Use -nativepath to specify the location of native code
          Hide
          erikj Erik Joelsson added a comment -
          Fixed in consol-proto and patch set.
          Show
          erikj Erik Joelsson added a comment - Fixed in consol-proto and patch set.

            People

            • Assignee:
              erikj Erik Joelsson
              Reporter:
              amlu Amy Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: