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

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

Commit messages:
 - bash ./bin/blessed-modifier-order.sh test/jdk/tools/jpackage/
 - 8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail
 - Add PackageType.throwSkippedExceptionIfNativePackagingUnavailable(). Stable 
order of platform package types. Make PackageTest fail if native packagers are 
unavailable.
 - Get rid of dependency on "/test/lib" tets lib

Changes: https://git.openjdk.org/jdk/pull/24294/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24294&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352419
  Stats: 175 lines in 6 files changed: 126 ins; 22 del; 27 mod
  Patch: https://git.openjdk.org/jdk/pull/24294.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24294/head:pull/24294

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

Reply via email to