mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Merge branch 'GP-0_ghidra1_testFix'
This commit is contained in:
commit
3a2922e175
2 changed files with 8 additions and 3 deletions
|
@ -29,6 +29,7 @@ import ghidra.program.model.address.AddressSet;
|
||||||
import ghidra.program.model.listing.Program;
|
import ghidra.program.model.listing.Program;
|
||||||
import ghidra.program.util.ProgramLocation;
|
import ghidra.program.util.ProgramLocation;
|
||||||
import ghidra.program.util.ProgramSelection;
|
import ghidra.program.util.ProgramSelection;
|
||||||
|
import ghidra.util.Swing;
|
||||||
import ghidra.util.SystemUtilities;
|
import ghidra.util.SystemUtilities;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +65,9 @@ public class GhidraState {
|
||||||
this.currentHighlight = highlight;
|
this.currentHighlight = highlight;
|
||||||
this.isGlobalState = true;
|
this.isGlobalState = true;
|
||||||
if (!SystemUtilities.isInHeadlessMode()) {
|
if (!SystemUtilities.isInHeadlessMode()) {
|
||||||
gatherParamPanel = new GatherParamPanel(this);
|
Swing.runNow(() -> {
|
||||||
|
gatherParamPanel = new GatherParamPanel(this);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,10 @@ public class GhidraScriptAskMethodsTest extends AbstractGhidraHeadedIntegrationT
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearScriptCachedValues() {
|
private void clearScriptCachedValues() {
|
||||||
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
if (script != null) {
|
||||||
map.clear();
|
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
||||||
|
map.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue