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.

Accept a system extension macOS is removing with no app named

Țugui Dragoș750184fc5c60
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/AppExtensionsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/AppExtensionsTests.swift
index 52d47152..5827eb4a 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/AppExtensionsTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/AppExtensionsTests.swift
@@ -215,7 +215,11 @@ struct AppExtensionsTests {
#expect(path.hasSuffix(".systemextension/") || path.hasSuffix(".dext/"), "\(item.identifier) is at \(path)")
#expect(FileManager.default.fileExists(atPath: path), "\(item.identifier) is at \(path), which isn't there")
#expect(item.reportedState?.isEmpty == false, "\(item.identifier) reported no state")
- #expect(item.owner != nil, "nothing says which app brought \(item.identifier)")
+ // When Finder moves the app, macOS forgets which app it was and removes the extension at the next restart.
+ #expect(
+ item.owner != nil || item.election == .beingRemoved,
+ "nothing says which app brought \(item.identifier)"
+ )
}
}