Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903884

Jtreg -nativepath should support absolute path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • 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

            Unassigned Unassigned
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: