RFR: 8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail
Alexey Semenyuk
asemenyuk at openjdk.org
Tue Apr 1 19:02:55 UTC 2025
On Tue, 1 Apr 2025 14:20:17 GMT, Arno Zeller <azeller at openjdk.org> wrote:
>> Make tools/jpackage/share/ErrorTest.java test safely handle the case when native bundling is unavailable on the test host.
>>
>> Additionally:
>> - If native bundling is unavailable on the test host, PackageTest will throw `jtreg.SkippedException` and mark the test as skipped instead of silently doing nothing. This should mark a few jpackage tests "skipped" in tests runs on Alpine Linux that doesn't support either .deb or .rpm packaging.
>> - Get rid of the dependency on `jtreg.SkippedException` from `/jdk/test` lib as this exception can be thrown from almost every jpackage test because of the changes in PackageTest. Instead embed `jtreg.SkippedException` classfile in TKit.java source and load it from there. This is a less intrusive alternative to adding
>>
>> * @library /test/lib
>> * @build jtreg.SkippedException
>>
>> in every jtreg test declaration
>
> The same issue can be seen on a Windows system without WIX installed.
@ArnoZeller, I've fixed the issue with PackageTestTest.java and verified that all jpackage tests pass on Windows without installed WiX. Please try again.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24294#issuecomment-2770418748
More information about the core-libs-dev
mailing list