Skip to content

Ghidra is a software reverse engineering (SRE) framework

Added test debug

dragonmacher5b85ced381ce
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingUtilsTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingUtilsTest.java
index b3686bf660..115384ffe0 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingUtilsTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingUtilsTest.java
@@ -502,7 +502,14 @@ public class KeyBindingUtilsTest extends AbstractGhidraHeadedIntegrationTest {
assertEquals(keyText.toUpperCase(), keyField.getText());
runSwing(() -> panel.apply());
- assertEquals(KeyStroke.getKeyStroke(keyCode, 0), action.getKeyBinding());
+
+ if (!Objects.equals(KeyStroke.getKeyStroke(keyCode, 0), action.getKeyBinding())) {
+
+ Msg.debug(this, "Action did not take keybinding: " + action.getFullName());
+
+ assertEquals("Key binding was not applied", KeyStroke.getKeyStroke(keyCode, 0),
+ action.getKeyBinding());
+ }
}
private void selectRowForAction(DockingActionIf action) throws Exception {