Integrated: 8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail

Alexey Semenyuk asemenyuk at openjdk.org
Thu Apr 3 13:59:09 UTC 2025


On Fri, 28 Mar 2025 15:02:05 GMT, Alexey Semenyuk <asemenyuk 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

This pull request has now been integrated.

Changeset: 70e32500
Author:    Alexey Semenyuk <asemenyuk at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/70e325004536eb9b79f4943f27eed4ac6cec8bd5
Stats:     180 lines in 6 files changed: 128 ins; 25 del; 27 mod

8352419: Test  tools/jpackage/share/ErrorTest.java#id0 and #id1 fail

Reviewed-by: almatvee

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

PR: https://git.openjdk.org/jdk/pull/24294


More information about the core-libs-dev mailing list