Skip to content
Permalink
Browse files
8260592: jpackage tests fail when Desktop is not supported
Reviewed-by: asemenyuk, herrick
  • Loading branch information
shipilev committed Jan 29, 2021
1 parent d2b0ea1 commit 24a262124f507759d72cddc0d1371b31ef1661cf
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/jdk/tools/jpackage/apps/image/Hello.java
@@ -154,6 +154,12 @@ private static Hello createInstance() {

trace("Environment supports a display");

if (!Desktop.isDesktopSupported()) {
return null;
}

trace("Environment supports a desktop");

try {
// Disable JAB.
// Needed to suppress error:

0 comments on commit 24a2621

Please sign in to comment.