fix(process): preserve partial evidence and verify detached cleanup (#1011)
* test(ci): allow transport delivery in source identity regression * fix(process): preserve partial evidence and verify detached cleanup * fix(process): scope Linux token sweeps by stable process identity * fix(process): retain environment permission failure codes * fix(process): wait for signaled processes before verifying cleanup * fix(process): verify sampled detached groups during cleanup * fix(electron): preserve prelaunch identities through cleanup * fix(process): retry growing Darwin process table snapshots * fix(process): retain compatibility with saved v3 capture evidence * fix(process): migrate saved v3 captures during reconstruction verification * fix(process): preserve cancellation during Darwin helper compilation * fix(process): propagate cancellation through ownership baselines * perf(javascript): cache canonical export comparison sort keys * fix(process): cancel provider ownership preparation before spawn * fix(process): isolate native compiler waiter cancellation
This commit is contained in:
@@ -52,6 +52,31 @@ describe("process capture capability diagnostics", () => {
|
||||
).toContain("spawn EACCES");
|
||||
});
|
||||
|
||||
it("prepares Darwin ownership inspection before probing or admitting a PTY", async () => {
|
||||
let loaded = false;
|
||||
const capability = await probeProcessCaptureCapability({
|
||||
platform: "darwin",
|
||||
prepareOwnershipInspector: async () => {
|
||||
throw new Error(
|
||||
"macOS process ownership inspection requires the Apple Swift compiler via xcrun",
|
||||
);
|
||||
},
|
||||
loadPty: async () => {
|
||||
loaded = true;
|
||||
return await import("@lydell/node-pty");
|
||||
},
|
||||
});
|
||||
|
||||
expect(loaded).toBe(false);
|
||||
expect(capability).toEqual({
|
||||
available: false,
|
||||
backend: "node-pty",
|
||||
reason: expect.stringContaining(
|
||||
"requires the Apple Swift compiler via xcrun",
|
||||
),
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps the ownership limitation separate from native PTY support", () => {
|
||||
expect(processCaptureOwnershipUnavailableReason("win32")).toContain(
|
||||
"Windows PTY process capture",
|
||||
|
||||
Reference in New Issue
Block a user