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

tools/jpackage/share/IconTest.java fails with assert error java.lang.AssertionError: Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold

XMLWordPrintable

    • x86_64
    • windows

      log extracts

      [22:44:07.970] TRACE: Images mismatch at [31, 30] pixel
      [22:44:07.970] TRACE: Images mismatch at [31, 31] pixel
      [22:44:07.970] ERROR: Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold
      [22:44:07.970] [ FAILED ] IconTest(AppImage, CustomIcon, CustomIcon).test; checks=31
      [22:44:07.970] [ RUN ] IconTest(AppImage, CustomIcon, CustomWithResourceDirIcon).test
      [22:44:08.002] TRACE: Resource file: [.\\test.793915af\\resources\\x.ico] <- [C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+24-1795\\src.full\\open\\test\\jdk\\tools\\jpackage\\resources\\icon3.ico]
      [22:44:08.002] TRACE: exec: Execute tool provider [javac -d .\\test.793915af\\jar-workdir C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+24-1795\\src.full\\open\\test\\jdk\\tools\\jpackage\\apps\\Hello.java](4)...
      [22:44:08.359] TRACE: exec: Done. Exit code: 0
      [22:44:08.359] TRACE: assertEquals(0): Check command tool provider [javac -d .\\test.793915af\\jar-workdir C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+24-1795\\src.full\\open\\test\\jdk\\tools\\jpackage\\apps\\Hello.java](4) exited with 0 code
      [22:44:08.374] TRACE: exec: Execute tool provider [jar -c -f .\\test.793915af\\input\\hello.jar -C .\\test.793915af\\jar-workdir .](7)...
      [22:44:08.374] TRACE: exec: Done. Exit code: 0
      [22:44:08.374] TRACE: assertEquals(0): Check command tool provider [jar -c -f .\\test.793915af\\input\\hello.jar -C .\\test.793915af\\jar-workdir .](7) exited with 0 code
      [22:44:08.390] TRACE: Create [C:\\sb\\prod\\1670365502\\testoutput\\test-support\\jtreg_open_test_jdk_tier2\\scratch\\17\\test.793915af\\x.properties] properties file...
      [22:44:08.390] TRACE: icon=C:/ade/mesos/work_dir/jib-master/install/jdk-20+24-1795/src.full/open/test/jdk/tools/jpackage/resources/icon4.ico
      [22:44:08.390] TRACE: Done
      [22:44:08.390] TRACE: Init fake runtime in [.\\test.793915af\\fake_runtime] directory
      [22:44:08.528] TRACE: Files in [.\\test.793915af\\resources] resource dir:
      [22:44:08.548] TRACE: [x.ico]
      [22:44:08.549] TRACE: Done

      ...

      [22:47:16.373] TRACE: Deleting [.\\test.8d7d304e] directory recursively
      [22:47:16.373] [ OK ] IconTest(AppImage, ResourceDirIcon, ResourceDirIcon).test; checks=30
      [22:47:16.373] [==========] 20 tests ran
      [22:47:16.373] [ PASSED ] 19 tests
      [22:47:16.373] [ FAILED ] 1 test, listed below
      [22:47:16.388] [ FAILED ] IconTest(AppImage, CustomIcon, CustomIcon).test; workDir=[.\\test.e40bd2ca]
      [22:47:16.388] 1 FAILED TEST
      The process cannot access the file because it is being used by another process.
      ----------System.err:(49/3348)----------
      java.lang.AssertionError: Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold
      at jdk.jpackage.test.TKit.error(TKit.java:277)
      at jdk.jpackage.test.TKit.assertTrue(TKit.java:657)
      at jdk.jpackage.test.TKit.assertTrue(TKit.java:644)
      at jdk.jpackage.test.LauncherIconVerifier$WinIconVerifier.lambda$verifyLauncherIcon$0(LauncherIconVerifier.java:148)
      at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
      at jdk.jpackage.test.TKit.withTempDirectory(TKit.java:345)
      at jdk.jpackage.test.LauncherIconVerifier$WinIconVerifier.verifyLauncherIcon(LauncherIconVerifier.java:89)
      at jdk.jpackage.test.LauncherIconVerifier.applyTo(LauncherIconVerifier.java:70)
      at IconTest.lambda$createInstallVerifier$1(IconTest.java:272)
      at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
      at IconTest.test(IconTest.java:166)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)

            asemenyuk Alexey Semenyuk
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: