jtreg -nativepath should support relative path

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • jtreg8.1
    • Affects Version/s: None
    • Component/s: tools
    • None
    • Environment:
    • generic
    • generic

      Use relative path will cause below tests fails:
      rm -rf tmp/ ; jtreg -v:fail,error -nr -w tmp -nativepath:build/linux-x86_64-server-release/images/test/hotspot/jtreg/native test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/MissedStackMapFrames/MissedStackMapFrames.java
      STDOUT:
      Error occurred during initialization of VM
      Could not find agent library MissedStackMapFrames on the library path, with error: libMissedStackMapFrames.so: cannot open shared object file: No such file or directory

      Use absolute path will run passed:
      > rm -rf tmp/ ; jtreg -v:fail,error -nr -w tmp -nativepath:$PWD/build/linux-x86_64-server-release/images/test/hotspot/jtreg/native test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/MissedStackMapFrames/MissedStackMapFrames.java
      Directory "tmp" not found: creating
      --------------------------------------------------
      TEST: serviceability/jvmti/RedefineClasses/MissedStackMapFrames/MissedStackMapFrames.java
      TEST RESULT: Passed. Execution successful
      --------------------------------------------------
      Test results: passed: 1
      Results written to /home/yansendao/git/jdk/tmp

            Assignee:
            Jaikiran Pai
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: