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

@sashamatveev PTAL

@MBaesken, please try this patch out.

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

PR Comment: https://git.openjdk.org/jdk/pull/24294#issuecomment-2766300894
PR Comment: https://git.openjdk.org/jdk/pull/24294#issuecomment-2766309469

Reply via email to