File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ java/awt/TrayIcon/TrayIconEvents/TrayIconEventsTest.java 8150540 windows-all
221221java/awt/TrayIcon/TrayIconMouseTest/TrayIconMouseTest.java 8150540 windows-all
222222java/awt/TrayIcon/TrayIconPopup/TrayIconPopupClickTest.java 8150540 windows-all,macosx-all
223223java/awt/TrayIcon/TrayIconPopup/TrayIconPopupTest.java 8150540 windows-all
224- java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java 8196440 linux-all
225224
226225java/awt/Window/ShapedAndTranslucentWindows/SetShapeAndClick.java 8197936 macosx-all
227226java/awt/Window/ShapedAndTranslucentWindows/SetShapeDynamicallyAndClick.java 8013450 macosx-all
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2013, 2016 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2013, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -54,6 +54,10 @@ public class PopupMenuLeakTest {
5454 static final AtomicReference <WeakReference <PopupMenu >> popupWeakReference = new AtomicReference <>();
5555 static ExtendedRobot robot ;
5656 public static void main (String [] args ) throws Exception {
57+ if (!SystemTray .isSupported ()) {
58+ System .out .println ("SystemTray not supported. Skipping the test." );
59+ return ;
60+ }
5761 robot = new ExtendedRobot ();
5862 SwingUtilities .invokeAndWait (PopupMenuLeakTest ::createSystemTrayIcon );
5963 sleep ();
You can’t perform that action at this time.
0 commit comments