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

test/jdk/tools/jpackage/windows/WinL10nTest.java test fails if light.exe is not in %PATH%

    XMLWordPrintable

Details

    • b11
    • generic
    • windows

    Backports

      Description

        If WinL10nTest.java test is executed in the system where path to WiX toolkit binaries is not in %PATH% environment variable the test fails:

        [12:35:15.166] ERROR: Unexpected null value: Check output contains [-cultures:en-us] string
        [12:35:15.168] [ FAILED ] WinL10nTest([name=a.wxl; culture=en-us](length=1), en-us, null).test; checks=7
        java.lang.AssertionError: Unexpected null value: Check output contains [-cultures:en-us] string
        at jdk.jpackage.test.TKit.error(TKit.java:264)
        at jdk.jpackage.test.TKit.assertNotNull(TKit.java:624)
        at jdk.jpackage.test.TKit$TextStreamVerifier.apply(TKit.java:810)
        at WinL10nTest.lambda$test$3(WinL10nTest.java:122)
        at jdk.jpackage.test.Functional$ThrowingBiConsumer.lambda$toBiConsumer$0(Functional.java:56)
        at jdk.jpackage.test.PackageTest$Handler.lambda$verifyPackageBundle$2(PackageTest.java:573)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest$Handler.verifyPackageBundle(PackageTest.java:573)
        at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:539)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:461)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:398)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at jdk.jpackage.test.PackageTest.lambda$runActions$21(PackageTest.java:362)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.lambda$runActions$22(PackageTest.java:361)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:360)
        at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:57)
        at WinL10nTest.test(WinL10nTest.java:165)

        Attachments

          Issue Links

            Activity

              People

                asemenyuk Alexey Semenyuk
                asemenyuk Alexey Semenyuk
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: