On Thu, 28 Aug 2025 21:32:05 GMT, Phil Race <p...@openjdk.org> wrote:
>> * Add `@requires os.family == "linux"` to prevent GTK L&F tests from running >> on other OS but Linux. >> * Let any exceptions from `UIManager.setLookAndFeel` propagate. >> * Remove `@author` tag. >> * Expand imports in `test/jdk/com/sun/java/swing/plaf/gtk/Test6635110.java`. >> * Add leading asterisks to jtreg comment block. > > test/jdk/com/sun/java/swing/plaf/gtk/4928019/bug4928019.java line 39: > >> 37: try { >> 38: >> UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); >> 39: } catch (UnsupportedLookAndFeelException ex) { > > Just so you know .. this can be thrown on Linux too if the libgtk-3 isn't > found. > However since all these tests are headful, it ought to be OK. Yes, I know. I faced this problem before, this is why seemingly headless tests that need GTK L&F have to have the *headful* keyword. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26995#discussion_r2309528504