[jdk17] RFR: JDK-8268404: [TESTBUG] tools/jpackage/windows/WinInstallerIconTest.java failed "AssertionError: Failed: Check icon"

Alexey Semenyuk asemenyuk at openjdk.java.net
Mon Jun 21 20:46:31 UTC 2021


On Mon, 21 Jun 2021 20:21:58 GMT, Andy Herrick <herrick at openjdk.org> wrote:

> …t.java failed "AssertionError: Failed: Check icon"

Changes requested by asemenyuk (Reviewer).

test/jdk/tools/jpackage/windows/WinInstallerIconTest.java line 75:

> 73: 
> 74:         // Create another installer with custom icon.
> 75:         long size3 = createInstaller(customIcon, "WithCustom3Icon");

The test should produce WinInstallerIconTest-1.0.exe artifact referenced in SQE test spec. But this patch will not produce it. It will produce WinInstallerIconTestWithDefaultIcon-1.0.exe, WinInstallerIconTestWithCustom2Icon-1.0.exe and WinInstallerIconTestWithCustom3Icon-1.0.exe artifacts and all of them will be deleted.

test/jdk/tools/jpackage/windows/WinInstallerIconTest.java line 114:

> 112:             size = installerExePath[0].toFile().length();
> 113:             TKit.trace(" installer: " + installerExePath[0] + " - size: " + size);
> 114:             if (nameSuffix != "3") {

Value of `nameSuffix` parameter is never equals to "3"

-------------

PR: https://git.openjdk.java.net/jdk17/pull/111


More information about the core-libs-dev mailing list