From 774da926d2b5dcf7dc4c7bdb5159149c70ffb67c Mon Sep 17 00:00:00 2001 From: Tejesh R Date: Wed, 17 Sep 2025 10:38:52 +0530 Subject: [PATCH] Ignoring test for Windows 11 --- test/jdk/ProblemList.txt | 1 - .../swing/JFileChooser/8194044/FileSystemRootTest.java | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt index aac9d9a8a219b..af1537cf61a33 100644 --- a/test/jdk/ProblemList.txt +++ b/test/jdk/ProblemList.txt @@ -685,7 +685,6 @@ javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all javax/swing/JTree/4633594/JTreeFocusTest.java 7105441 macosx-all javax/swing/AbstractButton/6711682/bug6711682.java 8060765 windows-all,macosx-all javax/swing/JFileChooser/6396844/TwentyThousandTest.java 8198003 generic-all -javax/swing/JFileChooser/8194044/FileSystemRootTest.java 8327236 windows-all javax/swing/JPopupMenu/6800513/bug6800513.java 7184956 macosx-all javax/swing/JTabbedPane/4624207/bug4624207.java 8064922 macosx-all javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java 8160720 generic-all diff --git a/test/jdk/javax/swing/JFileChooser/8194044/FileSystemRootTest.java b/test/jdk/javax/swing/JFileChooser/8194044/FileSystemRootTest.java index 59cfed4bccfc1..71a0fbc7125fe 100644 --- a/test/jdk/javax/swing/JFileChooser/8194044/FileSystemRootTest.java +++ b/test/jdk/javax/swing/JFileChooser/8194044/FileSystemRootTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,6 +36,10 @@ public class FileSystemRootTest { public static void main(String[] args) throws Exception { + if (System.getProperty("os.name").equalsIgnoreCase("Windows 11")) { + System.out.println("Test not applicable for Win 11"); + return; + } FileSystemView fileSystemView = FileSystemView.getFileSystemView(); /*