mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-6-17-25'
This commit is contained in:
commit
8c48d9f116
2 changed files with 5 additions and 6 deletions
|
@ -181,7 +181,10 @@ public class XrefViewerTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
selectRow(table, 0);
|
||||
assertTrue(runSwing(() -> deleteAction.isEnabled()));
|
||||
|
||||
performAction(deleteAction, table, true);
|
||||
performAction(deleteAction, table, false);
|
||||
DialogComponentProvider dialog = waitForDialogComponent("Delete Xrefs?");
|
||||
pressButtonByText(dialog, "Delete");
|
||||
waitForTableModel(table.getModel());
|
||||
|
||||
assertEquals(0, table.getModel().getRowCount());
|
||||
assertReference("01001009", "01001005", false);
|
||||
|
|
|
@ -92,7 +92,6 @@ public class ConcurrentTestExceptionStatement extends Statement {
|
|||
}
|
||||
|
||||
private boolean isRunningFromEclipse() {
|
||||
// TODO: this may need adjustment for other Eclipse platforms/versions
|
||||
return System.getProperty("java.class.path").endsWith(".cp");
|
||||
}
|
||||
|
||||
|
@ -195,7 +194,6 @@ public class ConcurrentTestExceptionStatement extends Statement {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "removal" }) // Thread.stop()
|
||||
private void checkForTestTimeout(TestThread testThread) {
|
||||
|
||||
if (timoutMonitor == null || !timoutMonitor.didRun()) {
|
||||
|
@ -216,9 +214,7 @@ public class ConcurrentTestExceptionStatement extends Statement {
|
|||
|
||||
StackTraceElement[] trace = testThread.getStackTrace();
|
||||
|
||||
// if we get here, we are one step away from System.exit(1), so do the
|
||||
// bad thing and kill the thread
|
||||
testThread.stop();
|
||||
testThread.interrupt();
|
||||
lastTestThread = null; // don't try to join
|
||||
AssertionFailedError error =
|
||||
new AssertionFailedError("Test locked-up--aborting! See log for details");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue