Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Judge an uninstall's command links as the helper will, once the app has moved

Țugui Dragoșccd1fb758167
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift
index ff9002e1..702eb86d 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift
@@ -1151,7 +1151,10 @@ struct SuggestedSelectionOnThisMacTests {
let needsTheHelper = Set(uninstallation.scan.leftovers.filter(\.requiresPrivileges).map(\.url))
for url in uninstallation.suggestedSelection(canUseHelper: true) where url != app.url {
#expect(guardian.allowsRemoval(of: url), "\(app.name): the guard refuses \(url.path(percentEncoded: false))")
- #expect(!needsTheHelper.contains(url) || !reach.isBeyond(url), "\(app.name): the helper refuses \(url.path(percentEncoded: false))")
+ #expect(
+ !needsTheHelper.contains(url) || !reach.isBeyond(url, leaving: app.url),
+ "\(app.name): the helper refuses \(url.path(percentEncoded: false))"
+ )
}
}
}