Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 24a2621

Browse files
committedJan 29, 2021
8260592: jpackage tests fail when Desktop is not supported
Reviewed-by: asemenyuk, herrick
1 parent d2b0ea1 commit 24a2621

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎test/jdk/tools/jpackage/apps/image/Hello.java

+6
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ private static Hello createInstance() {
154154

155155
trace("Environment supports a display");
156156

157+
if (!Desktop.isDesktopSupported()) {
158+
return null;
159+
}
160+
161+
trace("Environment supports a desktop");
162+
157163
try {
158164
// Disable JAB.
159165
// Needed to suppress error:

0 commit comments

Comments
 (0)