From b7c1d79da3ecbe3ccf4b1f259b9a35c72443b54a Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 24 Oct 2026 08:23:24 +0800 Subject: [PATCH] test(ghidra): distinguish descriptor failure origin from callback tagging --- tests/process-global/ghidraEndpointLifetime.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/process-global/ghidraEndpointLifetime.test.ts b/tests/process-global/ghidraEndpointLifetime.test.ts index 0bf38d24c5..320fdac18e 100644 --- a/tests/process-global/ghidraEndpointLifetime.test.ts +++ b/tests/process-global/ghidraEndpointLifetime.test.ts @@ -195,8 +195,10 @@ it.skipIf(process.platform === "win32").each(["released", "failed"] as const)( throw new Error("Expected the retained endpoint descriptor owner"); expect(endpointCause.reason).toBe("io"); expect(endpointCause.cancellation).toBeUndefined(); + // The descriptor reader retains native EIO directly, without an opaque + // callback marker; the wrapper still owns the failed operation and close. expect(artifactFilePrimaryFacts(endpointCause).origin).toBe( - "opaque-operation", + "owned-or-classified", ); expect(endpointCause.fileCleanupFailure.owner.handle).toBe( fault.handles[0],