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

[TESTBUG] tools/jpackage/windows/WinInstallerIconTest.java failed "AssertionError: Failed: Check icon"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28

      Backports

        Description

        The following test failed in the JDK17 CI:

        tools/jpackage/windows/WinInstallerIconTest.java

        Here's a snippet from the log file:

        [19:49:18.611] TRACE: assertEquals(0): Check command [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2370\\windows-x64.jdk\\jdk-17\\bin\\jpackage.exe --input .\\test\\input --dest .\\test\\output --name WinInstallerIconTest2 --type exe --main-jar hello.jar --main-class Hello --win-console --icon C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-17+26-2370\\src.full\\open\\test\\jdk\\tools\\jpackage\\resources\\icon.ico --runtime-image .\\test\\fake_runtime --verbose](19) exited with 0 code
        [19:49:18.611] TRACE: assertTrue(): Check [.\\test\\output\\WinInstallerIconTest2-1.0.exe] path exists
        [19:49:18.611] TRACE: assertTrue(): Check [.\\test\\output\\WinInstallerIconTest2-1.0.exe] is a file
        [19:49:18.642] TRACE: assertNotEquals(0, 16): Check icon has not empty width
        [19:49:18.642] TRACE: assertNotEquals(0, 16): Check icon has not empty height
        [19:49:18.658] ERROR: Failed: Check icon of .\\test\\output\\WinInstallerIconTest2-1.0.exe installer is NOT matching unexpected value
        [19:49:18.658] [ FAILED ] WinInstallerIconTest.test; checks=17
        [19:49:18.658] [==========] 1 tests ran
        [19:49:18.658] [ PASSED ] 0 tests
        [19:49:18.658] [ FAILED ] 1 test, listed below
        [19:49:18.658] [ FAILED ] WinInstallerIconTest.test; workDir=[.\\test]
        [19:49:18.658] 1 FAILED TEST
        ----------System.err:(67/4795)*----------
        java.lang.AssertionError: Failed: Check icon of .\\test\\output\\WinInstallerIconTest2-1.0.exe installer is NOT matching unexpected value
        at jdk.jpackage.test.TKit.error(TKit.java:279)
        at jdk.jpackage.test.TKit.assertFalse(TKit.java:671)
        at jdk.jpackage.test.TKit.assertFalse(TKit.java:650)
        at WinInstallerIconTest.lambda$createInstaller$4(WinInstallerIconTest.java:133)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at jdk.jpackage.test.PackageTest.lambda$addBundleVerifier$6(PackageTest.java:160)
        at jdk.jpackage.test.Functional$ThrowingBiConsumer.lambda$toBiConsumer$0(Functional.java:56)
        at jdk.jpackage.test.PackageTest$Handler.lambda$verifyPackageBundle$1(PackageTest.java:548)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest$Handler.verifyPackageBundle(PackageTest.java:548)
        at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:524)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:447)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:396)
        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$20(PackageTest.java:360)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.lambda$runActions$21(PackageTest.java:359)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:358)
        at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:51)
        at WinInstallerIconTest.createInstaller(WinInstallerIconTest.java:140)
        at WinInstallerIconTest.test(WinInstallerIconTest.java:79)
        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:141)
        at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:126)
        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:123)
        at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
        at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:109)
        at jdk.jpackage.test.TKit.runTests(TKit.java:122)
        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:109)
        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:109)
        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)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: 1 FAILED TEST
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 1 FAILED TEST
        ----------rerun:(44/5531)*----------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                herrick Andy Herrick (Inactive)
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: