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.

Ask the kernel whether a stopped job's process ended in its test

Țugui Dragoșd38fbac633dd
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift
index 053b4cd4..a9d73a4b 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift
@@ -211,7 +211,7 @@ struct BackgroundItemActionsTests {
#expect(asked.withLock { $0 } == ["bootout", "print"])
#expect(clock.now - started >= .milliseconds(250), "Stop returned while the process still ran")
- #expect(!program.isRunning)
+ #expect(!ProcessEnds.isRunning(program.processIdentifier))
}
@Test func restartsOnlyAJobPeelMayControlAndAsksLaunchdToKillAndStartIt() async {