diff --git a/src/domain/evidence.test.ts b/src/domain/evidence.test.ts index be923e3a6..27060f2fb 100644 --- a/src/domain/evidence.test.ts +++ b/src/domain/evidence.test.ts @@ -19,7 +19,7 @@ const TARGET: BinaryTarget = { const PROVIDER = { id: "fixture", name: "Fixture provider", version: "1" }; const PROFILE = createAnalysisProfile(PROVIDER, { loader: "default" }); -it("rejects a detected Evidence subject with the raw-only 6502 architecture", () => { +it("keeps 6502 confined to explicit raw Evidence subjects alongside iNES", () => { const selected = { path: TARGET.path, sha256: TARGET.sha256, @@ -33,17 +33,26 @@ it("rejects a detected Evidence subject with the raw-only 6502 architecture", () result: null, }).subject, ).toMatchObject({ format: "raw-binary", architecture: "6502" }); - const malformed = { - ...selected, - format: "pe" as const, - }; - expect(() => - createEvidence(malformed, PROVIDER, { - operation: "inspect", - parameters: {}, - result: null, - }), - ).toThrow(); + expect( + createEvidence( + { + path: selected.path, + sha256: selected.sha256, + format: "ines", + }, + PROVIDER, + { operation: "inspect", parameters: {}, result: null }, + ).subject, + ).toMatchObject({ format: "ines", architecture: null }); + for (const format of ["pe", "ines"] as const) { + expect(() => + createEvidence({ ...selected, format }, PROVIDER, { + operation: "inspect", + parameters: {}, + result: null, + }), + ).toThrow(); + } }); it("preserves omitted relationship diagnostics and authenticates reported diagnostics", () => { diff --git a/tests/boundary/providers/ghidra/ghidraLauncher.test.ts b/tests/boundary/providers/ghidra/ghidraLauncher.test.ts index ea8fb964c..c10e0eb3d 100644 --- a/tests/boundary/providers/ghidra/ghidraLauncher.test.ts +++ b/tests/boundary/providers/ghidra/ghidraLauncher.test.ts @@ -486,7 +486,9 @@ describe("Ghidra Windows launcher", () => { }), ).toThrow(/metacharacters/u); }); +}); +describe("Ghidra Windows runtime isolation", () => { it.skipIf(process.platform !== "win32").each([ { properties: