fix(windows): preserve drive-root private runtime paths
Join the admitted parent and generated child name without duplicating a drive-root separator. Reuse that name for handle-relative creation and path provenance. Add native snapshot, readback, and cleanup coverage through the Ghidra dot-prefixed temp fallback, plus a session-root contract regression. Fixes #1690
This commit is contained in:
@@ -44,6 +44,15 @@ describe("ghidraSessionRoot", () => {
|
||||
).toBe(posixBase("Users", "operator"));
|
||||
});
|
||||
|
||||
it("can select a filesystem root when the inherited temp starts with a dot-prefixed element", () => {
|
||||
expect(
|
||||
ghidraSessionRoot({
|
||||
base: posixBase(".Tmp", "scratch"),
|
||||
platform: "win32",
|
||||
}),
|
||||
).toBe(resolve(sep));
|
||||
});
|
||||
|
||||
it.skipIf(!POSIX)("prefers the platform temp directory by default", () => {
|
||||
expect(
|
||||
ghidraSessionRoot({ base: posixBase("home", "operator", ".cache") }),
|
||||
|
||||
Reference in New Issue
Block a user