Print GTK theme at the start of SWTBot
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 6 Sep 2016 21:06:49 +0000 (17:06 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 20 Sep 2016 14:27:21 +0000 (10:27 -0400)
Since behavior can change greatly depending on the theme, this
might help us investigate failing tests in some cases.

Change-Id: I857267abfc1acc82d0a4b7876b2cd8f83387e4f7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80534
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java

index 0be83df52f13c5aaf175c74d4b7e20d5929c5533..5232ca4abd4e7a0500714c0aa732772798d88b6c 100644 (file)
@@ -397,6 +397,10 @@ public final class SWTBotUtils {
         String gtkVersion = System.getProperty("org.eclipse.swt.internal.gtk.version");
         if (gtkVersion != null) {
             System.out.println("GTK version=" + gtkVersion);
+            // Try to print the GTK theme information as behavior can change depending on the theme
+            String gtkTheme = System.getProperty("org.eclipse.swt.internal.gtk.theme");
+            System.out.println("GTK theme=" + (gtkTheme == null ? "unknown" : gtkTheme));
+
             String overlayScrollbar = System.getenv("LIBOVERLAY_SCROLLBAR");
             if (overlayScrollbar != null) {
                 System.out.println("LIBOVERLAY_SCROLLBAR=" + overlayScrollbar);
This page took 0.03651 seconds and 5 git commands to generate.