Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0 Corrected test case for Windows execution

ghidra158e6dc510bd9
diff --git a/Ghidra/Framework/Project/src/test/java/ghidra/framework/protocol/ghidra/GhidraURLTest.java b/Ghidra/Framework/Project/src/test/java/ghidra/framework/protocol/ghidra/GhidraURLTest.java
index 5596da1ed6..91c6f67044 100644
--- a/Ghidra/Framework/Project/src/test/java/ghidra/framework/protocol/ghidra/GhidraURLTest.java
+++ b/Ghidra/Framework/Project/src/test/java/ghidra/framework/protocol/ghidra/GhidraURLTest.java
@@ -17,6 +17,7 @@ package ghidra.framework.protocol.ghidra;
import static org.junit.Assert.*;
+import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.*;
@@ -829,7 +830,7 @@ public class GhidraURLTest extends AbstractGenericTest {
ghidraUrl = GhidraURL.toURL(improperUrl);
assertEquals("a b+c", GhidraURL.getDecodedReference(ghidraUrl));
- assertEquals(path + ".rep",
+ assertEquals(path.replace('/', File.separatorChar) + ".rep",
GhidraURL.getProjectStorageLocator(ghidraUrl).getProjectDir().toString());
assertEquals(path, GhidraURL.getProjectPathname(ghidraUrl));