Skip to content

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.java
index 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 test
public class InVmModelForGdbAmd64RegistersTest extends AbstractModelForGdbAmd64RegistersTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbBreakpointsTest extends AbstractModelForGdbBreakpointsTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbFrameActivationTest extends AbstractModelForGdbFrameActivationTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbInferiorLauncherTest extends AbstractModelForGdbInferiorLauncherTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbInterpreterTest extends AbstractModelForGdbInterpreterTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbScenarioAmd64RegistersTest
extends AbstractModelForGdbScenarioAmd64RegistersTest {
@Override
diff --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.java
index 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 test
public class InVmModelForGdbScenarioCloneExitTest extends AbstractModelForGdbScenarioCloneExitTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbSessionLauncherTest extends AbstractModelForGdbSessionLauncherTest {
@Override
public 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.java
index 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 test
public class InVmModelForGdbSteppableTest extends AbstractModelForGdbSteppableTest {
@Override
public 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.java
index 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 test
public 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 AbstractGhidraHeadedDebu
waitForPass(() -> 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 AbstractGhidraHeadedDebu
clickListing(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 AbstractGhidraHeadedDebu
traceManager.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 AbstractGhidraHeadedDebu
clickListing(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 AbstractGhidraHeadedDebu
clickListing(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 AbstractGhidraHeadedDebu
clickListing(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 AbstractGhidraHeadedDebu
clickListing(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 AbstractGhidraHeadedDebu
traceManager.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 anything
waitForDomainObject(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 change
waitForDomainObject(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 whatever
for (LogicalBreakpoint lb : List.copyOf(breakpointService.getAllBreakpoints())) {
lb.delete();
@@ -523,8 +497,7 @@ public class DebuggerBreakpointMarkerPluginTest extends AbstractGhidraHeadedDebu
performAction(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 AbstractGhidraHeadedDebu
dialog.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 AbstractGhidraHeadedDebu
dialog.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 AbstractGhidraHeadedDebu
dynamicCtx(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.java
index 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 test
public class DebuggerBreakpointsProviderTest extends AbstractGhidraHeadedDebuggerGUITest
implements 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.java
index 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 test
public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUITest {
protected DebuggerModulesPlugin modulesPlugin;
protected DebuggerModulesProvider modulesProvider;
@@ -403,8 +406,7 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUI
clickTableCell(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 AbstractGhidraHeadedDebuggerGUI
waitForPass(() -> 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);
@Test
public void testPopupActionsOnModuleSelections() throws Exception {
@@ -711,9 +710,7 @@ public class DebuggerModulesProviderTest extends AbstractGhidraHeadedDebuggerGUI
clickTableCellWithButton(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 AbstractGhidraHeadedDebuggerGUI
waitForSwing();
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 AbstractGhidraHeadedDebuggerGUI
clickTableCellWithButton(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.java
index 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 test
public class DebuggerRegistersProviderTest extends AbstractGhidraHeadedDebuggerGUITest
implements 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 tracking
listingPlugin.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.java
index 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 test
public class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUITest {
protected DebuggerTargetsPlugin targetsPlugin;
protected DebuggerTargetsProvider targetsProvider;
@@ -114,10 +117,8 @@ public class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUI
assertEquals(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);
@Test
public void testPopupActionsOnDebuggerModel() throws Exception {
@@ -127,9 +128,8 @@ public class DebuggerTargetsProviderTest extends AbstractGhidraHeadedDebuggerGUI
clickTreeNode(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));
}
@Test
diff --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.java
index 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 test
public 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.java
index 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 test
public class DebuggerEmulationServiceTest extends AbstractGhidraHeadedDebuggerGUITest {
protected DebuggerEmulationServicePlugin emulationPlugin;
@@ -57,9 +60,8 @@ public class DebuggerEmulationServiceTest extends AbstractGhidraHeadedDebuggerGU
Register 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.java
index 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 test
public class DebuggerTraceManagerServiceTest extends AbstractGhidraHeadedDebuggerGUITest
implements DebuggerModelTestUtils {