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

tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH

XMLWordPrintable

    • b15
    • generic
    • linux_alpine

        The test fails on Alpine Linux 3.17, when checking the environment variable LD_LIBRARY_PATH; looks like the actual env variable is much longer than the test expects.

        java.lang.AssertionError: Expected
        [/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/lib/server:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/../lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jtreg_jdk_tier2_work/JTwork/scratch/test/output/AppLauncherEnvTest/lib/app].
        Actual
        [/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jtreg_jdk_tier2_work/JTwork/scratch/test/output/AppLauncherEnvTest/lib/runtime/lib/server:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jtreg_jdk_tier2_work/JTwork/scratch/test/output/AppLauncherEnvTest/lib/runtime/lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jtreg_jdk_tier2_work/JTwork/scratch/test/output/AppLauncherEnvTest/lib/runtime/../lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/lib/server:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jvm17/../lib:/priv/test/output_openjdk17_dev_dbgU_linuxmuslx86_64/jtreg_jdk_tier2_work/JTwork/scratch/test/output/AppLauncherEnvTest/lib/app]: Check value of LD_LIBRARY_PATH env variable
        at jdk.jpackage.test.TKit.error(TKit.java:268)
        at jdk.jpackage.test.TKit.assertEquals(TKit.java:594)
        at AppLauncherEnvTest.test(AppLauncherEnvTest.java:86)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
        at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
        at jdk.jpackage.test.TKit.lambda$ignoreExceptions$5(TKit.java:139)
        at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:124)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
        at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:121)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
        at jdk.jpackage.test.TKit.runTests(TKit.java:120)
        at jdk.jpackage.test.Main.runTests(Main.java:79)
        at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
        at jdk.jpackage.test.Main.main(Main.java:75)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)
        java.lang.RuntimeException: 1 FAILED TEST
        at jdk.jpackage.test.Main.reportSummary(Main.java:130)
        at jdk.jpackage.test.Main.runTests(Main.java:90)
        at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:107)
        at jdk.jpackage.test.Main.main(Main.java:75)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: