Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-3-25-26'

This commit is contained in:
Ryan Kurtz
2026-03-26 04:41:30 -04:00
3 changed files with 18 additions and 13 deletions
@@ -381,18 +381,23 @@ public class FakeSharedProject {
ProjectLocator projectLocator = getProjectData().getProjectLocator(); ProjectLocator projectLocator = getProjectData().getProjectLocator();
programManager.disposeOpenPrograms(); programManager.disposeOpenPrograms();
String projectName = gProject.getProject().getName(); String projectName = "<No project>";
Project project = gProject.getProject();
if (project != null) {
projectName = project.getName();
}
gProject.close(); gProject.close();
File projectDir = projectLocator.getProjectDir(); File projectDir = projectLocator.getProjectDir();
if (projectDir.exists()) { if (projectDir.exists()) {
boolean success = FileUtilities.deleteDir(projectDir); boolean success = FileUtilities.deleteDir(projectDir);
if (!success) { if (!success) {
Msg.error(this, "Unable to delete test project dir '%s' in %s".formatted(projectName, projectDir)); Msg.error(this, "Unable to delete test project dir '%s' in %s"
.formatted(projectName, projectDir));
} }
} }
File markerFile = projectLocator.getMarkerFile(); File markerFile = projectLocator.getMarkerFile();
if (markerFile.exists()) { if (markerFile.exists()) {
boolean success = markerFile.delete(); boolean success = markerFile.delete();
@@ -521,6 +521,7 @@ public class FunctionSignatureStringable extends Stringable {
applyInline(destFunction, isInline, markupOptions); applyInline(destFunction, isInline, markupOptions);
applyNoReturn(destFunction, hasNoReturn, markupOptions); applyNoReturn(destFunction, hasNoReturn, markupOptions);
int origDestParamCount = destFunction.getParameterCount(); // must get before modifying
applyParameterTypes(destFunction, markupOptions, forceApply); applyParameterTypes(destFunction, markupOptions, forceApply);
boolean hasSrcVarArgs = hasVarargs; boolean hasSrcVarArgs = hasVarargs;
@@ -535,8 +536,7 @@ public class FunctionSignatureStringable extends Stringable {
forceParameterNames(destFunction); forceParameterNames(destFunction);
} }
else { else {
int paramCount = destFunction.getParameterCount(); applyParameterNames(destFunction, markupOptions, true, origDestParamCount);
applyParameterNames(destFunction, markupOptions, true, paramCount);
} }
CommentChoices commentChoice = CommentChoices commentChoice =
@@ -198,8 +198,8 @@ public class HistoryList<T> {
} }
private void doGoToIndex(int index) { private void doGoToIndex(int index) {
historyIndex = index;
T leaving = getCurrentHistoryItem(); T leaving = getCurrentHistoryItem();
historyIndex = index;
T t = historyStack.get(index); T t = historyStack.get(index);
dropNull(); dropNull();