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

tools/jpackage/share/AddLShortcutTest.java "Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold"

    XMLWordPrintable

Details

    • b27
    • x86_64
    • windows

    Description

      The following test failed in the JDK20 CI:

      tools/jpackage/share/AddLShortcutTest.java

      Here's a snippet from the log file:

      [13:16:32.846] TRACE: Images mismatch at [31, 29] pixel
      [13:16:32.846] TRACE: Images mismatch at [31, 30] pixel
      [13:16:32.846] TRACE: Images mismatch at [31, 31] pixel
      [13:16:32.846] ERROR: Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold
      [13:16:32.846] [ FAILED ] AddLShortcutTest.test; checks=29
      [13:16:32.846] [==========] 1 tests ran
      [13:16:32.846] [ PASSED ] 0 tests
      [13:16:32.846] [ FAILED ] 1 test, listed below
      [13:16:32.846] [ FAILED ] AddLShortcutTest.test; workDir=[.\\test]
      [13:16:32.846] 1 FAILED TEST
      The process cannot access the file because it is being used by another process.
      ----------System.err:(64/4492)----------
      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 jdk.jpackage.test.AdditionalLauncher.verifyIcon(AdditionalLauncher.java:286)
      at jdk.jpackage.test.AdditionalLauncher.verify(AdditionalLauncher.java:322)
      at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
      at jdk.jpackage.test.PackageTest$Handler.lambda$verifyPackageInstalled$5(PackageTest.java:658)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:658)
      at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:592)
      at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:504)
      at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:411)
      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$24(PackageTest.java:381)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at jdk.jpackage.test.PackageTest.lambda$runActions$25(PackageTest.java:380)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:379)
      at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:58)
      at AddLShortcutTest.test(AddLShortcutTest.java:111)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      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.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)
      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.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

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

      Attachments

        Issue Links

          Activity

            People

              asemenyuk Alexey Semenyuk
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: