RuntimePackageTest.testName() test case at [1] runs jpackage command without `--name` option only when bundling .deb installer. It is supposed to run jpackage command without `--name` option for all types of installers. However, on Windows, this is NOT the case. In the test log:
---
[13:47:30.654] TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --name NameRuntimePackageTest --type msi --verbose](8); inherit out+err...
---
It is supposed to be:
---
TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --type msi --verbose](6); inherit out+err...
---
In other words, the test is not testing the target test case for all but .deb installers.
[1] https://github.com/openjdk/jdk/blob/e55ddabffa90e28d22f546b387007fe4e434c3e0/test/jdk/tools/jpackage/share/RuntimePackageTest.java#L98
---
[13:47:30.654] TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --name NameRuntimePackageTest --type msi --verbose](8); inherit out+err...
---
It is supposed to be:
---
TRACE: exec: Execute tool provider [jpackage --dest RuntimePackageTest\testName\output --type msi --verbose](6); inherit out+err...
---
In other words, the test is not testing the target test case for all but .deb installers.
[1] https://github.com/openjdk/jdk/blob/e55ddabffa90e28d22f546b387007fe4e434c3e0/test/jdk/tools/jpackage/share/RuntimePackageTest.java#L98
- caused by
-
JDK-8356309 Fix issues uncovered after running jpackage tests locally with installing test packages
-
- Resolved
-