From 59e103ec2cdf14b5c07299aa4e39a7f3442fb5f4 Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:42:09 -0400 Subject: [PATCH] Test fixes --- .../src/main/java/generic/test/AbstractGuiTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java b/Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java index 2e7bc58151..883986df6d 100644 --- a/Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java +++ b/Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java @@ -34,6 +34,7 @@ import javax.swing.tree.*; import org.junit.Assert; +import ghidra.framework.ApplicationConfiguration; import ghidra.util.*; import ghidra.util.datastruct.WeakSet; import ghidra.util.exception.AssertException; @@ -48,6 +49,18 @@ import utility.function.ExceptionalCallback; * should use AbstractGenericTest instead */ public class AbstractGuiTest extends AbstractGenericTest { + + @Override + protected ApplicationConfiguration createApplicationConfiguration() { + // A simple way to signal that Gui tests are not headless + return new ApplicationConfiguration() { + @Override + public boolean isHeadless() { + return false; + } + }; + } + /** * Gets all windows in the system (including Frames). *