Skip to content

Commit f610ef0

Browse files
author
Alexander Zvegintsev
committed
8196440: Regression automated Test 'java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java' fails
Reviewed-by: serb, psadhukhan
1 parent f143d2a commit f610ef0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/jdk/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ java/awt/TrayIcon/TrayIconEvents/TrayIconEventsTest.java 8150540 windows-all
221221
java/awt/TrayIcon/TrayIconMouseTest/TrayIconMouseTest.java 8150540 windows-all
222222
java/awt/TrayIcon/TrayIconPopup/TrayIconPopupClickTest.java 8150540 windows-all,macosx-all
223223
java/awt/TrayIcon/TrayIconPopup/TrayIconPopupTest.java 8150540 windows-all
224-
java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java 8196440 linux-all
225224

226225
java/awt/Window/ShapedAndTranslucentWindows/SetShapeAndClick.java 8197936 macosx-all
227226
java/awt/Window/ShapedAndTranslucentWindows/SetShapeDynamicallyAndClick.java 8013450 macosx-all

test/jdk/java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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();

0 commit comments

Comments
 (0)