mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-1-26-24' into patch
This commit is contained in:
commit
fcc9d35e8f
1 changed files with 18 additions and 2 deletions
|
@ -55,6 +55,7 @@ import ghidra.program.model.listing.*;
|
|||
import ghidra.program.model.symbol.*;
|
||||
import ghidra.program.util.ProgramSelection;
|
||||
import ghidra.test.*;
|
||||
import ghidra.util.Msg;
|
||||
import ghidra.util.task.TaskMonitor;
|
||||
|
||||
public class Function1Test extends AbstractGhidraHeadedIntegrationTest {
|
||||
|
@ -354,6 +355,7 @@ public class Function1Test extends AbstractGhidraHeadedIntegrationTest {
|
|||
Function func = createThunk(addr("0x10030d2"), "comdlg32.dll::CommDlgExtendedError", true);
|
||||
|
||||
assertTrue(cb.goToField(addr("0x10030d2"), "Function Signature", 0, 0));
|
||||
assertTrue(func.isThunk());
|
||||
|
||||
performAction(revertThunk, cb.getProvider(), false);
|
||||
|
||||
|
@ -369,6 +371,19 @@ public class Function1Test extends AbstractGhidraHeadedIntegrationTest {
|
|||
|
||||
undo(program);// undo changed function
|
||||
|
||||
if (!func.isThunk()) {
|
||||
|
||||
Msg.debug(this, "\n\t>>> test will fail...waiting a bit to see if it is timing");
|
||||
waitForValueWithoutFailing(() -> {
|
||||
|
||||
Msg.debug(this, "\tchecking again...");
|
||||
if (!func.isThunk()) {
|
||||
return null; // not ready
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
assertTrue(func.isThunk());
|
||||
assertEquals("CommDlgExtendedError", func.getName());
|
||||
|
||||
|
@ -1278,6 +1293,7 @@ public class Function1Test extends AbstractGhidraHeadedIntegrationTest {
|
|||
// the following text (this is only a part of the status message, but is enough
|
||||
// to verify the test):
|
||||
assertTrue(dialog.getStatusText().contains("doesn't fit within"));
|
||||
close(dialog);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue