Skip to content

Ghidra is a software reverse engineering (SRE) framework

Test fixes

dragonmacherf847e4e66e1a
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/AnnotationTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/AnnotationTest.java
index 0d3c6d166b..b4e8de1b82 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/AnnotationTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/AnnotationTest.java
@@ -741,13 +741,6 @@ public class AnnotationTest extends AbstractGhidraHeadedIntegrationTest {
// Navigation performed by ProgramManager not tested due to use of spyServiceProvider
}
- @Test
- public void testVariableAnnotation_Basic() {
- String rawComment = "{@variable Stack[0xa] MyFunction}";
- String display = CommentUtils.getDisplayString(rawComment, program);
- assertEquals("myVariable", display);
- }
-
@Test
public void testVariableAnnotation_BasicModify() {
String rawComment = "{@variable myVariable MyFunction}";
@@ -765,21 +758,14 @@ public class AnnotationTest extends AbstractGhidraHeadedIntegrationTest {
}
@Test
- public void testLocalAnnotation_UserMarked() {
- String rawComment = "{@variable Stack[0xa] MyFunction}";
- String display = CommentUtils.getDisplayString(rawComment, program);
- assertEquals("myVariable", display);
- }
-
- @Test
- public void testLocalAnnotation_UserMarkedModify() {
+ public void testLocalAnnotation_VariableAddress() {
String rawComment = "{@variable Stack[0xa] MyFunction}";
String display = CommentUtils.fixupAnnotations(rawComment, program, Address.NO_ADDRESS);
assertEquals("{@variable Stack[0xa] 01002000}", display);
}
@Test
- public void testLocalAnnotation_UserMarkedModify_NoFunction() {
+ public void testLocalAnnotation_VariableAddress_NoFunction() {
String rawComment = "{@variable Stack[0xa]}";
String functionAddress = "01002000";
Address entryPoint = addr(functionAddress);