mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-26 22:20:42 +00:00
Merge branch 'GP-0_ghidra1_testFix'
This commit is contained in:
commit
3a2922e175
@ -29,6 +29,7 @@ import ghidra.program.model.address.AddressSet;
|
||||
import ghidra.program.model.listing.Program;
|
||||
import ghidra.program.util.ProgramLocation;
|
||||
import ghidra.program.util.ProgramSelection;
|
||||
import ghidra.util.Swing;
|
||||
import ghidra.util.SystemUtilities;
|
||||
|
||||
/**
|
||||
@ -64,7 +65,9 @@ public class GhidraState {
|
||||
this.currentHighlight = highlight;
|
||||
this.isGlobalState = true;
|
||||
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() {
|
||||
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
||||
map.clear();
|
||||
if (script != null) {
|
||||
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
||||
map.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user