mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Test fixes
This commit is contained in:
parent
5e81cf5d83
commit
4dbb22bf83
1 changed files with 9 additions and 9 deletions
|
@ -86,8 +86,7 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
init.executeSleigh("pc = 0x00400000;");
|
init.executeSleigh("pc = 0x00400000;");
|
||||||
|
|
||||||
Assembler asm = Assemblers.getAssembler(tb.trace.getFixedProgramView(0));
|
Assembler asm = Assemblers.getAssembler(tb.trace.getFixedProgramView(0));
|
||||||
iit = asm.assemble(start,
|
iit = asm.assemble(start, "imm r0, #0x123");
|
||||||
"imm r0, #0x123");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
imm123 = iit.next();
|
imm123 = iit.next();
|
||||||
|
@ -149,6 +148,7 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
|
|
||||||
@PcodeUserop
|
@PcodeUserop
|
||||||
public void stepper_test_userop() {
|
public void stepper_test_userop() {
|
||||||
|
// stub
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
goto <L0>;
|
goto <L0>;
|
||||||
""");
|
""");
|
||||||
assertEquals(3, rows.size());
|
assertEquals(3, rows.size());
|
||||||
assertEquals("<html><span class=\"lab\"><0></span></html>", rows.get(0).getLabel());
|
assertEquals("<html><font color=\"Blue\"><0></font></html>", rows.get(0).getLabel());
|
||||||
assertEquals("<html></html>", rows.get(1).getLabel());
|
assertEquals("<html></html>", rows.get(1).getLabel());
|
||||||
assertEquals(FallthroughPcodeRow.class, rows.get(2).getClass());
|
assertEquals(FallthroughPcodeRow.class, rows.get(2).getClass());
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
assertEquals(4, rows.size());
|
assertEquals(4, rows.size());
|
||||||
assertEquals("<html></html>", rows.get(0).getLabel());
|
assertEquals("<html></html>", rows.get(0).getLabel());
|
||||||
assertEquals("<html></html>", rows.get(1).getLabel());
|
assertEquals("<html></html>", rows.get(1).getLabel());
|
||||||
assertEquals("<html><span class=\"lab\"><0></span></html>", rows.get(2).getLabel());
|
assertEquals("<html><font color=\"Blue\"><0></font></html>", rows.get(2).getLabel());
|
||||||
assertEquals(FallthroughPcodeRow.class, rows.get(3).getClass());
|
assertEquals(FallthroughPcodeRow.class, rows.get(3).getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
assertEquals(3, rows.size());
|
assertEquals(3, rows.size());
|
||||||
assertEquals("<html></html>", rows.get(0).getLabel());
|
assertEquals("<html></html>", rows.get(0).getLabel());
|
||||||
assertEquals("<html></html>", rows.get(1).getLabel());
|
assertEquals("<html></html>", rows.get(1).getLabel());
|
||||||
assertEquals("<html><span class=\"lab\"><0></span></html>", rows.get(2).getLabel());
|
assertEquals("<html><font color=\"Blue\"><0></font></html>", rows.get(2).getLabel());
|
||||||
assertEquals(FallthroughPcodeRow.class, rows.get(2).getClass());
|
assertEquals(FallthroughPcodeRow.class, rows.get(2).getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,11 +240,11 @@ public class DebuggerPcodeStepperProviderTest extends AbstractGhidraHeadedDebugg
|
||||||
""");
|
""");
|
||||||
assertEquals(5, rows.size());
|
assertEquals(5, rows.size());
|
||||||
// NB. templates number labels in order of appearance in BRANCHes
|
// NB. templates number labels in order of appearance in BRANCHes
|
||||||
assertEquals("<html><span class=\"lab\"><3></span></html>", rows.get(0).getLabel());
|
assertEquals("<html><font color=\"Blue\"><3></font></html>", rows.get(0).getLabel());
|
||||||
assertEquals("<html><span class=\"lab\"><0></span></html>", rows.get(1).getLabel());
|
assertEquals("<html><font color=\"Blue\"><0></font></html>", rows.get(1).getLabel());
|
||||||
assertEquals("<html><span class=\"lab\"><1></span></html>", rows.get(2).getLabel());
|
assertEquals("<html><font color=\"Blue\"><1></font></html>", rows.get(2).getLabel());
|
||||||
assertEquals("<html></html>", rows.get(3).getLabel());
|
assertEquals("<html></html>", rows.get(3).getLabel());
|
||||||
assertEquals("<html><span class=\"lab\"><2></span></html>", rows.get(4).getLabel());
|
assertEquals("<html><font color=\"Blue\"><2></font></html>", rows.get(4).getLabel());
|
||||||
assertEquals(FallthroughPcodeRow.class, rows.get(4).getClass());
|
assertEquals(FallthroughPcodeRow.class, rows.get(4).getClass());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue