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

[Testbug] runtime/XCheckJniJsig/XCheckJSig.java looks for libjsig in wrong location

XMLWordPrintable

    • b15

        The test:

        runtime/XCheckJniJsig/XCheckJSig.java

        still expects to find libraries in the lib/<arch> directory on Linux/Solaris:

              } else {
                    env_var = "LD_PRELOAD";
                    libjsig = jdk_path + "/jre/lib/" + os_arch + "/libjsig.so"; // jdk location
                    if (!(new File(libjsig).exists())) {
                        libjsig = jdk_path + "/lib/" + os_arch + "/libjsig.so"; // jre location
                    }
                }

        but the arch directory was removed from the JRE a long time ago.

        The test doesn't fail because it "skips" when the library can't be found:

        TEST: runtime/XCheckJniJsig/XCheckJSig.java
          build: 2.09 seconds
          compile: 2.09 seconds
          main: 0.772 seconds
        TEST RESULT: Passed. Skipped: jtreg.SkippedException: File /export/users/dh198349/jdk-dev3/open/test/hotspot/jtreg/../../../../build/linux-x64-debug/images/jdk/lib/amd64/libjsig.so not found
        --------------------------------------------------

              hseigel Harold Seigel (Inactive)
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: