mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-10-13 21:52:59 +00:00
Test fixes
This commit is contained in:
parent
21ff55ab9e
commit
a5716109a9
|
@ -506,20 +506,19 @@ public class GoToAddressLabelPluginTest extends AbstractGhidraHeadedIntegrationT
|
||||||
public void testQueryResultsMaxHitsDynamicFound() throws Exception {
|
public void testQueryResultsMaxHitsDynamicFound() throws Exception {
|
||||||
loadProgram("x86");
|
loadProgram("x86");
|
||||||
Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME);
|
Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME);
|
||||||
opt.getInt(GhidraOptions.OPTION_SEARCH_LIMIT, 20);
|
opt.setInt(GhidraOptions.OPTION_SEARCH_LIMIT, 20);
|
||||||
|
|
||||||
setText("L*");
|
setText("L*");
|
||||||
performOkCallback();
|
performOkCallback();
|
||||||
GhidraProgramTableModel<?> model = waitForModel();
|
GhidraProgramTableModel<?> model = waitForModel();
|
||||||
assertEquals(20, model.getRowCount());
|
assertEquals(20, model.getRowCount());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testQueryResultsMaxHitsDefinedFound() throws Exception {
|
public void testQueryResultsMaxHitsDefinedFound() throws Exception {
|
||||||
loadProgram("x86");
|
loadProgram("x86");
|
||||||
Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME);
|
Options opt = plugin.getTool().getOptions(PluginConstants.SEARCH_OPTION_NAME);
|
||||||
opt.getInt(GhidraOptions.OPTION_SEARCH_LIMIT, 5);
|
opt.setInt(GhidraOptions.OPTION_SEARCH_LIMIT, 5);
|
||||||
|
|
||||||
createLabel("1006960", "abc1");
|
createLabel("1006960", "abc1");
|
||||||
createLabel("1006961", "abc2");
|
createLabel("1006961", "abc2");
|
||||||
|
@ -533,7 +532,6 @@ public class GoToAddressLabelPluginTest extends AbstractGhidraHeadedIntegrationT
|
||||||
performOkCallback();
|
performOkCallback();
|
||||||
GhidraProgramTableModel<?> model = waitForModel();
|
GhidraProgramTableModel<?> model = waitForModel();
|
||||||
assertEquals(5, model.getRowCount());
|
assertEquals(5, model.getRowCount());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue