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 <noreply@anthropic.com>
This commit is contained in:
Marnix Pluim
2026-10-11 19:12:37 +08:00
committed by GitHub
co-authored by Claude
parent ba7df3f0f7
commit 40d9c7b836
@@ -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-");