Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(native): skip the EACCES directory diagnostic as root (#1394)

Marnix Pluim40d9c7b836a3
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-");