Ghidra is a software reverse engineering (SRE) framework
Updated debugger tests to only be run nightly due to parallel test mode issues
dragonmachera23dceb15374
diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbAmd64RegistersTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbAmd64RegistersTest.javaindex cef52950a5..115c326f41 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbAmd64RegistersTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbAmd64RegistersTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbAmd64RegistersTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbAmd64RegistersTest extends AbstractModelForGdbAmd64RegistersTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbBreakpointsTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbBreakpointsTest.javaindex 5ab98d721a..533abd6520 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbBreakpointsTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbBreakpointsTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbBreakpointsTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbBreakpointsTest extends AbstractModelForGdbBreakpointsTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbFrameActivationTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbFrameActivationTest.javaindex cfff9e9a23..328695192b 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbFrameActivationTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbFrameActivationTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbFrameActivationTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbFrameActivationTest extends AbstractModelForGdbFrameActivationTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInferiorLauncherTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInferiorLauncherTest.javaindex 2c81b2bc9e..e173613677 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInferiorLauncherTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInferiorLauncherTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbInferiorLauncherTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbInferiorLauncherTest extends AbstractModelForGdbInferiorLauncherTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInterpreterTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInterpreterTest.javaindex 128a2f3090..40cc5f42d5 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInterpreterTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbInterpreterTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbInterpreterTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbInterpreterTest extends AbstractModelForGdbInterpreterTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioAmd64RegistersTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioAmd64RegistersTest.javaindex be430c9d9e..24256d5cec 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioAmd64RegistersTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioAmd64RegistersTest.java@@ -15,9 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbScenarioAmd64RegistersTest;-import ghidra.dbg.testutil.TestDebuggerModelProvider.ModelHost;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbScenarioAmd64RegistersTestextends AbstractModelForGdbScenarioAmd64RegistersTest {@Overridediff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioCloneExitTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioCloneExitTest.javaindex 1371757b9f..5d12c11a78 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioCloneExitTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbScenarioCloneExitTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbScenarioCloneExitTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbScenarioCloneExitTest extends AbstractModelForGdbScenarioCloneExitTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSessionLauncherTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSessionLauncherTest.javaindex a5b1228783..784af96bb2 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSessionLauncherTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSessionLauncherTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbSessionLauncherTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbSessionLauncherTest extends AbstractModelForGdbSessionLauncherTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSteppableTest.java b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSteppableTest.javaindex 11af6d4228..09b11a05ba 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSteppableTest.java+++ b/Ghidra/Debug/Debugger-agent-gdb/src/test/java/agent/gdb/model/invm/InVmModelForGdbSteppableTest.java@@ -15,8 +15,12 @@*/package agent.gdb.model.invm;+import org.junit.experimental.categories.Category;+import agent.gdb.model.AbstractModelForGdbSteppableTest;+import generic.test.category.NightlyCategory;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class InVmModelForGdbSteppableTest extends AbstractModelForGdbSteppableTest {@Overridepublic ModelHost modelHost() throws Throwable {diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPluginTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPluginTest.javaindex f389a1051b..b89d3618ac 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPluginTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointMarkerPluginTest.java@@ -15,8 +15,7 @@*/package ghidra.app.plugin.core.debug.gui.breakpoint;-import static org.junit.Assert.assertEquals;-import static org.junit.Assert.assertTrue;+import static org.junit.Assert.*;import java.awt.*;import java.awt.event.MouseEvent;@@ -29,12 +28,14 @@ import javax.swing.SwingUtilities;import org.junit.Before;import org.junit.Test;+import org.junit.experimental.categories.Category;import com.google.common.collect.Range;import docking.action.DockingAction;import docking.widgets.fieldpanel.FieldPanel;import generic.Unique;+import generic.test.category.NightlyCategory;import ghidra.app.context.ProgramLocationActionContext;import ghidra.app.plugin.core.codebrowser.CodeBrowserPlugin;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;@@ -65,6 +66,7 @@ import ghidra.util.exception.CancelledException;import ghidra.util.exception.DuplicateNameException;import ghidra.util.task.TaskMonitor;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuggerGUITest {protected static final long TIMEOUT_MILLIS =SystemUtilities.isInTestingBatchMode() ? 5000 : Long.MAX_VALUE;@@ -101,9 +103,8 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebu.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);}- protected void addStaticMemoryAndBreakpoint()- throws LockException, DuplicateNameException, MemoryConflictException,- AddressOverflowException, CancelledException {+ protected void addStaticMemoryAndBreakpoint() throws LockException, DuplicateNameException,+ MemoryConflictException, AddressOverflowException, CancelledException {try (UndoableTransaction tid =UndoableTransaction.start(program, "Add bookmark break", true)) {program.getMemory()@@ -258,12 +259,9 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuwaitForPass(() -> assertEquals(DE_COLOR, getBackgroundColor(view, addr)));}- protected static final Set<String> POPUP_ACTIONS = Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME);+ protected static final Set<String> POPUP_ACTIONS = Set.of(AbstractSetBreakpointAction.NAME,+ AbstractToggleBreakpointAction.NAME, AbstractEnableBreakpointAction.NAME,+ AbstractDisableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME);protected static final Set<String> SET_ACTIONS =Set.of("SW_EXECUTE", "HW_EXECUTE", "READ,WRITE", "READ", "WRITE");@@ -276,9 +274,8 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuclickListing(codeBrowserPlugin.getListingPanel(), addr(program, 0x00400321),MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME));MenuElement elem = getSubMenuElementByText(AbstractSetBreakpointAction.NAME);assertSubMenu(elem, SET_ACTIONS, SET_ACTIONS); // All of them@@ -292,12 +289,10 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebutraceManager.activateTrace(trace);waitForSwing();- clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550321),- MouseEvent.BUTTON3);+ clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550321), MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME));MenuElement elem = getSubMenuElementByText(AbstractSetBreakpointAction.NAME);assertSubMenu(elem, SET_ACTIONS, SET_ACTIONS); // All of them@@ -313,11 +308,9 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuclickListing(codeBrowserPlugin.getListingPanel(), addr(program, 0x00400123),MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractDisableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));pressEscape();lb.disableForProgram();@@ -326,12 +319,10 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuclickListing(codeBrowserPlugin.getListingPanel(), addr(program, 0x00400123),MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractEnableBreakpointAction.NAME, AbstractDisableBreakpointAction.NAME,+ AbstractClearBreakpointAction.NAME));pressEscape();lb.disableForTrace(trace);@@ -340,11 +331,9 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuclickListing(codeBrowserPlugin.getListingPanel(), addr(program, 0x00400123),MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractEnableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));pressEscape();lb.enableForProgram();@@ -353,12 +342,10 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuclickListing(codeBrowserPlugin.getListingPanel(), addr(program, 0x00400123),MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractEnableBreakpointAction.NAME, AbstractDisableBreakpointAction.NAME,+ AbstractClearBreakpointAction.NAME));// TODO: Margin, too?}@@ -371,53 +358,41 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebutraceManager.activateTrace(trace);waitForSwing();- clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123),- MouseEvent.BUTTON3);+ clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123), MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractDisableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));pressEscape();lb.disableForProgram(); // Should not change anythingwaitForDomainObject(program);- clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123),- MouseEvent.BUTTON3);+ clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123), MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractDisableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractDisableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));pressEscape();lb.disableForTrace(trace);waitForDomainObject(trace);- clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123),- MouseEvent.BUTTON3);+ clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123), MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractEnableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));pressEscape();lb.enableForProgram(); // Again, no changewaitForDomainObject(program);- clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123),- MouseEvent.BUTTON3);+ clickListing(listingPlugin.getListingPanel(), addr(trace, 0x55550123), MouseEvent.BUTTON3);- assertMenu(POPUP_ACTIONS, Set.of(- AbstractSetBreakpointAction.NAME,- AbstractToggleBreakpointAction.NAME,- AbstractEnableBreakpointAction.NAME,- AbstractClearBreakpointAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractSetBreakpointAction.NAME, AbstractToggleBreakpointAction.NAME,+ AbstractEnableBreakpointAction.NAME, AbstractClearBreakpointAction.NAME));// TODO: Should mixed trace enablement be considered?// TODO: Margin, too? (Is there one?)@@ -464,8 +439,7 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebu}@Test- public void testActionToggleBreakpointProgramWithNoCurrentBreakpointOnData()- throws Exception {+ public void testActionToggleBreakpointProgramWithNoCurrentBreakpointOnData() throws Exception {addMappedBreakpointOpenAndWait(); // wasteful, but whateverfor (LogicalBreakpoint lb : List.copyOf(breakpointService.getAllBreakpoints())) {lb.delete();@@ -523,8 +497,7 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebuperformAction(breakpointMarkerPlugin.actionToggleBreakpoint,dynamicCtx(trace, addr(trace, 0x55550123)), true);- waitForPass(- () -> assertEquals(Enablement.ENABLED, lb.computeEnablementForTrace(trace)));+ waitForPass(() -> assertEquals(Enablement.ENABLED, lb.computeEnablementForTrace(trace)));}protected void testActionSetBreakpointProgram(DockingAction action,@@ -537,9 +510,8 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebudialog.okCallback();waitForPass(() -> {- LogicalBreakpoint lb =- Unique.assertOne(- breakpointService.getBreakpointsAt(program, addr(program, 0x00400321)));+ LogicalBreakpoint lb = Unique.assertOne(+ breakpointService.getBreakpointsAt(program, addr(program, 0x00400321)));assertEquals(expectedKinds, lb.getKinds());assertEquals(Enablement.ENABLED, lb.computeEnablement());});@@ -556,9 +528,8 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebudialog.okCallback();waitForPass(() -> {- LogicalBreakpoint lb =- Unique.assertOne(- breakpointService.getBreakpointsAt(trace, addr(trace, 0x55550321)));+ LogicalBreakpoint lb = Unique+ .assertOne(breakpointService.getBreakpointsAt(trace, addr(trace, 0x55550321)));assertEquals(expectedKinds, lb.getKinds());assertEquals(Enablement.ENABLED_DISABLED, lb.computeEnablementForTrace(trace));});@@ -696,8 +667,7 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebudynamicCtx(trace, addr(trace, 0x55550123)), true);// NB. Because it was deleted from the *trace context*- waitForPass(- () -> assertEquals(Enablement.INEFFECTIVE_ENABLED,- lb.computeEnablementForTrace(trace)));+ waitForPass(() -> assertEquals(Enablement.INEFFECTIVE_ENABLED,+ lb.computeEnablementForTrace(trace)));}}diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProviderTest.javaindex 35ce207811..3f105fab3a 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProviderTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/breakpoint/DebuggerBreakpointsProviderTest.java@@ -24,11 +24,13 @@ import java.util.concurrent.TimeUnit;import org.junit.Before;import org.junit.Test;+import org.junit.experimental.categories.Category;import com.google.common.collect.Range;import docking.widgets.table.RowWrappedEnumeratedColumnTableModel;import generic.Unique;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.plugin.core.debug.gui.DebuggerResources.*;import ghidra.app.plugin.core.debug.gui.breakpoint.DebuggerBreakpointsProvider.LogicalBreakpointTableModel;@@ -54,6 +56,7 @@ import ghidra.util.exception.CancelledException;import ghidra.util.exception.DuplicateNameException;import ghidra.util.task.TaskMonitor;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerBreakpointsProviderTest extends AbstractGhidraHeadedDebuggerGUITestimplements AsyncTestUtils {protected static final long TIMEOUT_MILLIS =diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProviderTest.javaindex 58f7e110de..1a7652f8f3 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProviderTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProviderTest.java@@ -22,11 +22,13 @@ import java.util.*;import java.util.concurrent.TimeUnit;import org.junit.*;+import org.junit.experimental.categories.Category;import com.google.common.collect.Range;import docking.widgets.filechooser.GhidraFileChooser;import generic.Unique;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.plugin.core.debug.gui.DebuggerResources.*;import ghidra.app.plugin.core.debug.gui.listing.DebuggerListingPlugin;@@ -62,6 +64,7 @@ import ghidra.util.database.UndoableTransaction;import ghidra.util.exception.CancelledException;import ghidra.util.exception.DuplicateNameException;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUITest {protected DebuggerModulesPlugin modulesPlugin;protected DebuggerModulesProvider modulesProvider;@@ -403,8 +406,7 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUIclickTableCell(propDialog.table, 0, ModuleMapTableColumns.CHOOSE.ordinal(), 1);- DataTreeDialog programDialog =- waitForDialogComponent(DataTreeDialog.class);+ DataTreeDialog programDialog = waitForDialogComponent(DataTreeDialog.class);assertEquals(program.getDomainFile(), programDialog.getDomainFile());pressButtonByText(programDialog, "OK", true);@@ -694,11 +696,8 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUIwaitForPass(() -> assertEquals(4, visibleSections().size()));}- protected static final Set<String> POPUP_ACTIONS = Set.of(- AbstractSelectAddressesAction.NAME,- MapModulesAction.NAME,- MapSectionsAction.NAME,- AbstractImportFromFileSystemAction.NAME);+ protected static final Set<String> POPUP_ACTIONS = Set.of(AbstractSelectAddressesAction.NAME,+ MapModulesAction.NAME, MapSectionsAction.NAME, AbstractImportFromFileSystemAction.NAME);@Testpublic void testPopupActionsOnModuleSelections() throws Exception {@@ -711,9 +710,7 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUIclickTableCellWithButton(modulesProvider.moduleTable, 0, 0, MouseEvent.BUTTON3);waitForSwing();- assertMenu(POPUP_ACTIONS, Set.of(- MapModulesAction.NAME,- MapSectionsAction.NAME,+ assertMenu(POPUP_ACTIONS, Set.of(MapModulesAction.NAME, MapSectionsAction.NAME,AbstractSelectAddressesAction.NAME));pressEscape();@@ -722,11 +719,8 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUIwaitForSwing();clickTableCellWithButton(modulesProvider.moduleTable, 0, 0, MouseEvent.BUTTON3);waitForSwing();- assertMenu(POPUP_ACTIONS, Set.of(- MapModulesAction.NAME,- MapSectionsAction.NAME,- AbstractSelectAddressesAction.NAME,- AbstractImportFromFileSystemAction.NAME));+ assertMenu(POPUP_ACTIONS, Set.of(MapModulesAction.NAME, MapSectionsAction.NAME,+ AbstractSelectAddressesAction.NAME, AbstractImportFromFileSystemAction.NAME));}@Test@@ -739,9 +733,7 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUIclickTableCellWithButton(modulesProvider.sectionTable, 0, 0, MouseEvent.BUTTON3);waitForSwing();- assertMenu(POPUP_ACTIONS, Set.of(- MapModulesAction.NAME,- MapSectionsAction.NAME,+ assertMenu(POPUP_ACTIONS, Set.of(MapModulesAction.NAME, MapSectionsAction.NAME,AbstractSelectAddressesAction.NAME));}}diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/register/DebuggerRegistersProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/register/DebuggerRegistersProviderTest.javaindex d3c89e7a1c..b38cd4c323 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/register/DebuggerRegistersProviderTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/register/DebuggerRegistersProviderTest.java@@ -15,7 +15,7 @@*/package ghidra.app.plugin.core.debug.gui.register;-import static ghidra.lifecycle.Unfinished.TODO;+import static ghidra.lifecycle.Unfinished.*;import static org.junit.Assert.*;import java.math.BigInteger;@@ -23,15 +23,16 @@ import java.util.*;import java.util.stream.Collectors;import org.junit.*;+import org.junit.experimental.categories.Category;import com.google.common.collect.Range;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.plugin.core.debug.gui.action.LocationTrackingSpec;import ghidra.app.plugin.core.debug.gui.action.NoneLocationTrackingSpec;-import ghidra.app.plugin.core.debug.gui.listing.*;+import ghidra.app.plugin.core.debug.gui.listing.DebuggerListingPlugin;import ghidra.app.plugin.core.debug.gui.register.DebuggerRegistersProvider.RegisterTableColumns;-import ghidra.app.plugin.core.debug.service.model.DebuggerModelServiceTest;import ghidra.app.services.TraceRecorder;import ghidra.async.AsyncTestUtils;import ghidra.program.model.data.*;@@ -47,6 +48,7 @@ import ghidra.trace.model.thread.TraceThread;import ghidra.util.database.UndoableTransaction;import ghidra.util.exception.DuplicateNameException;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerRegistersProviderTest extends AbstractGhidraHeadedDebuggerGUITestimplements AsyncTestUtils {@@ -698,7 +700,7 @@ public class DebuggerRegistersProviderTest extends AbstractGhidraHeadedDebuggerG}addRegisterValues(thread);addRegisterTypes(thread);- // Ensure cause is goto PC, not register tracking+ // Ensure cause is goto PC, not register trackinglistingPlugin.setTrackingSpec(LocationTrackingSpec.fromConfigName(NoneLocationTrackingSpec.CONFIG_NAME));traceManager.activateThread(thread);diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/target/DebuggerTargetsProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/target/DebuggerTargetsProviderTest.javaindex 428027ca4c..a6ffb05bb9 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/target/DebuggerTargetsProviderTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/target/DebuggerTargetsProviderTest.java@@ -15,7 +15,7 @@*/package ghidra.app.plugin.core.debug.gui.target;-import static ghidra.app.plugin.core.debug.gui.target.DebuggerTargetsProviderFriend.selectNodeForObject;+import static ghidra.app.plugin.core.debug.gui.target.DebuggerTargetsProviderFriend.*;import static org.junit.Assert.*;import java.awt.event.MouseEvent;@@ -24,8 +24,10 @@ import java.util.Set;import org.junit.Before;import org.junit.Test;+import org.junit.experimental.categories.Category;import docking.widgets.tree.GTreeNode;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.plugin.core.debug.gui.DebuggerResources.*;import ghidra.app.plugin.core.debug.service.model.DebuggerConnectDialog;@@ -34,6 +36,7 @@ import ghidra.dbg.model.TestDebuggerObjectModel;/*** Tests of the target provider*/+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUITest {protected DebuggerTargetsPlugin targetsPlugin;protected DebuggerTargetsProvider targetsProvider;@@ -114,10 +117,8 @@ public class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUIassertEquals(0, secondModel.clearInvalidateCachesCount());}- protected static final Set<String> POPUP_ACTIONS = Set.of(- AbstractConnectAction.NAME,- AbstractDisconnectAction.NAME,- AbstractFlushCachesAction.NAME);+ protected static final Set<String> POPUP_ACTIONS = Set.of(AbstractConnectAction.NAME,+ AbstractDisconnectAction.NAME, AbstractFlushCachesAction.NAME);@Testpublic void testPopupActionsOnDebuggerModel() throws Exception {@@ -127,9 +128,8 @@ public class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUIclickTreeNode(targetsProvider.tree,targetsProvider.rootNode.findNodeForObject(mb.testModel), MouseEvent.BUTTON3);waitForSwing();- assertMenu(POPUP_ACTIONS, Set.of(- AbstractDisconnectAction.NAME,- AbstractFlushCachesAction.NAME));+ assertMenu(POPUP_ACTIONS,+ Set.of(AbstractDisconnectAction.NAME, AbstractFlushCachesAction.NAME));}@Testdiff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/thread/DebuggerThreadsProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/thread/DebuggerThreadsProviderTest.javaindex 510e6a9bb8..46ac31f791 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/thread/DebuggerThreadsProviderTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/thread/DebuggerThreadsProviderTest.java@@ -23,9 +23,11 @@ import java.util.Set;import org.junit.Before;import org.junit.Test;+import org.junit.experimental.categories.Category;import com.google.common.collect.Range;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.services.TraceRecorder;import ghidra.trace.model.Trace;@@ -35,6 +37,7 @@ import ghidra.trace.model.time.TraceSnapshot;import ghidra.trace.model.time.TraceTimeManager;import ghidra.util.database.UndoableTransaction;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerThreadsProviderTest extends AbstractGhidraHeadedDebuggerGUITest {protected DebuggerThreadsPlugin threadsPlugin;diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/emulation/DebuggerEmulationServiceTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/emulation/DebuggerEmulationServiceTest.javaindex b8cb8d0530..78a23359b3 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/emulation/DebuggerEmulationServiceTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/emulation/DebuggerEmulationServiceTest.java@@ -20,8 +20,10 @@ import static org.junit.Assert.*;import java.math.BigInteger;import org.junit.Test;+import org.junit.experimental.categories.Category;import generic.Unique;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.assembler.Assembler;import ghidra.app.plugin.assembler.Assemblers;import ghidra.app.plugin.core.codebrowser.CodeBrowserPlugin;@@ -37,6 +39,7 @@ import ghidra.trace.model.time.TraceSchedule;import ghidra.util.database.UndoableTransaction;import ghidra.util.task.TaskMonitor;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerEmulationServiceTest extends AbstractGhidraHeadedDebuggerGUITest {protected DebuggerEmulationServicePlugin emulationPlugin;@@ -57,9 +60,8 @@ public class DebuggerEmulationServiceTest extends AbstractGhidraHeadedDebuggerGURegister regR0 = program.getRegister("r0");Register regR1 = program.getRegister("r1");try (UndoableTransaction tid = UndoableTransaction.start(program, "Initialize", true)) {- MemoryBlock blockText =- memory.createInitializedBlock(".text", addrText, 0x1000, (byte) 0,- TaskMonitor.DUMMY, false);+ MemoryBlock blockText = memory.createInitializedBlock(".text", addrText, 0x1000,+ (byte) 0, TaskMonitor.DUMMY, false);blockText.setExecute(true);memory.createInitializedBlock(".data", addr(program, 0x00600000), 0x1000, (byte) 0,TaskMonitor.DUMMY, false);diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServiceTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServiceTest.javaindex fa90b81bce..9dfcd6c7c6 100644--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServiceTest.java+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServiceTest.java@@ -21,7 +21,9 @@ import java.util.Collection;import java.util.Set;import org.junit.Test;+import org.junit.experimental.categories.Category;+import generic.test.category.NightlyCategory;import ghidra.app.plugin.core.debug.DebuggerCoordinates;import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;import ghidra.app.services.TraceRecorder;@@ -35,6 +37,7 @@ import ghidra.trace.model.stack.TraceStack;import ghidra.trace.model.thread.TraceThread;import ghidra.util.database.UndoableTransaction;+@Category(NightlyCategory.class) // this may actually be an @PortSensitive testpublic class DebuggerTraceManagerServiceTest extends AbstractGhidraHeadedDebuggerGUITestimplements DebuggerModelTestUtils {