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 DMG EACCES diagnostic as root (#1584)

Aravind Rao262efe6c54d8
diff --git a/tests/boundary/providers/native/nativeDmgArtifactReader.test.ts b/tests/boundary/providers/native/nativeDmgArtifactReader.test.ts
index 7ec3edc60..add877996 100644
--- a/tests/boundary/providers/native/nativeDmgArtifactReader.test.ts
+++ b/tests/boundary/providers/native/nativeDmgArtifactReader.test.ts
@@ -1028,7 +1028,7 @@ describe("native DMG real verification diagnostics", () => {
},
);
- it.skipIf(process.platform !== "darwin")(
+ it.skipIf(process.platform !== "darwin" || process.getuid?.() === 0)(
"classifies real hdiutil target access failures as I/O, separately from malformed images",
async () => {
const root = await createTestTempDirectory("rea-dmg-target-errors-");