From 40d9c7b836a3aca5d589c0a65c7d02b3ea5cd36b Mon Sep 17 00:00:00 2001 From: Marnix Pluim Date: Sun, 11 Oct 2026 13:12:37 +0200 Subject: [PATCH] test(native): skip the EACCES directory diagnostic as root (#1394) Root bypasses the mode-0 file permission this test relies on, so inventory succeeds and the expected EACCES failure never occurs. Match the root guard used by the other permission-dependent boundary tests. Claude-Session: https://claude.ai/code/session_01XPY2GmufMNGQKoEgRUx1pd Co-authored-by: Claude --- .../providers/native/artifactProvider.directoryErrors.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/boundary/providers/native/artifactProvider.directoryErrors.test.ts b/tests/boundary/providers/native/artifactProvider.directoryErrors.test.ts index 03d3835f1..d14fb3033 100644 --- a/tests/boundary/providers/native/artifactProvider.directoryErrors.test.ts +++ b/tests/boundary/providers/native/artifactProvider.directoryErrors.test.ts @@ -10,7 +10,7 @@ import { thinMach } from "../../../../src/domain/binaryTarget.fixture.js"; import { createTestTempDirectory } from "../../../fixtures/temporaryDirectory.js"; describe("artifact directory diagnostics", () => { - it.skipIf(process.platform === "win32")( + it.skipIf(process.platform === "win32" || process.getuid?.() === 0)( "preserves the inaccessible member path and errno through provider projection", async () => { const root = await createTestTempDirectory("rea-directory-eacces-");