From c64e7ccc077a6e766e389cb3484585211a6deb6d Mon Sep 17 00:00:00 2001 From: caheckman <48068198+caheckman@users.noreply.github.com> Date: Mon, 4 Oct 2021 13:40:58 -0400 Subject: [PATCH] Prevent SpecExtensionTest from tripping pentry test --- .../ghidra/app/plugin/core/decompile/SpecExtensionTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ghidra/Features/Decompiler/src/test.slow/java/ghidra/app/plugin/core/decompile/SpecExtensionTest.java b/Ghidra/Features/Decompiler/src/test.slow/java/ghidra/app/plugin/core/decompile/SpecExtensionTest.java index cce1b19408..02ee7a67a5 100644 --- a/Ghidra/Features/Decompiler/src/test.slow/java/ghidra/app/plugin/core/decompile/SpecExtensionTest.java +++ b/Ghidra/Features/Decompiler/src/test.slow/java/ghidra/app/plugin/core/decompile/SpecExtensionTest.java @@ -137,6 +137,8 @@ public class SpecExtensionTest extends AbstractDecompilerTest { // Replace the output register EAX with ECX defaultString = defaultString.replace("", ""); + defaultString = + defaultString.replace("piece2=\"register:0x0:4\"", "piece2=\"register:0x4:4\""); // Change the name defaultString = defaultString.replace("name=\"__stdcall\"", "name=\"myproto\""); SpecExtension specExtension = new SpecExtension(program); @@ -166,7 +168,7 @@ public class SpecExtensionTest extends AbstractDecompilerTest { decompile("100272e"); // Look for the affect of ECX being the output register - line = getLineContaining("FUN_010026a7(extraout_EAX);"); + line = getLineContaining("FUN_010026a7(in_EAX);"); assertNotNull(line); int id3 = program.startTransaction("Change eval model");