test(ghidra): distinguish descriptor failure origin from callback tagging

This commit is contained in:
morluto
2026-10-24 08:23:24 +08:00
parent c765b3b413
commit b7c1d79da3
@@ -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],