Skip to content

Commit

Permalink
8260592: jpackage tests fail when Desktop is not supported
Browse files Browse the repository at this point in the history
Reviewed-by: asemenyuk, herrick
  • Loading branch information
shipilev committed Jan 29, 2021
1 parent d2b0ea1 commit 24a2621
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/jdk/tools/jpackage/apps/image/Hello.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

1 comment on commit 24a2621

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.