Ghidra is a software reverse engineering (SRE) framework
Corrected test failures
ghidra174be84464283
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorAlignmentTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorAlignmentTest.javaindex 301c982f7b..e1fa6feff2 100644--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorAlignmentTest.java+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorAlignmentTest.java@@ -92,6 +92,8 @@ public class StructureEditorAlignmentTest extends AbstractStructureEditorTest {addDataType(new FloatDataType());addDataType(arrayDt);+ waitForSwing();+assertEquals(3, structureModel.getNumComponents());assertEquals(4, structureModel.getRowCount());checkRow(0, 0, 1, "db", new ByteDataType(), "", "");@@ -155,6 +157,8 @@ public class StructureEditorAlignmentTest extends AbstractStructureEditorTest {addDataType(new FloatDataType());addDataType(arrayDt);+ waitForSwing();+pressButtonByName(getPanel(), "Internally Aligned");pressButtonByName(getPanel(), "Machine Minimum Alignment");@@ -178,6 +182,8 @@ public class StructureEditorAlignmentTest extends AbstractStructureEditorTest {addDataType(new FloatDataType());addDataType(arrayDt);+ waitForSwing();+pressButtonByName(editorPanel, "Internally Aligned");JTextField minAlignField =(JTextField) getInstanceField("minAlignValueTextField", editorPanel);diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorFlexAlignmentTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorFlexAlignmentTest.javaindex 4cabcf6b06..c17a597edd 100644--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorFlexAlignmentTest.java+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorFlexAlignmentTest.java@@ -72,6 +72,8 @@ public class StructureEditorFlexAlignmentTest extends AbstractStructureEditorTesaddDataType(CharDataType.dataType);addFlexDataType(DWordDataType.dataType, null, null);+ waitForSwing();+assertEquals(2, structureModel.getNumComponents());assertEquals(4, structureModel.getRowCount());checkRow(0, 0, 1, "db", ByteDataType.dataType, "", "");@@ -101,6 +103,8 @@ public class StructureEditorFlexAlignmentTest extends AbstractStructureEditorTesaddDataType(CharDataType.dataType);addFlexDataType(DWordDataType.dataType, null, null);+ waitForSwing();+pressButtonByName(getPanel(), "Internally Aligned");pressButtonByName(getPanel(), "Machine Minimum Alignment");@@ -124,6 +128,8 @@ public class StructureEditorFlexAlignmentTest extends AbstractStructureEditorTesaddDataType(CharDataType.dataType);addFlexDataType(DWordDataType.dataType, null, null);+ waitForSwing();+pressButtonByName(editorPanel, "Internally Aligned");JTextField minAlignField =(JTextField) getInstanceField("minAlignValueTextField", editorPanel);