Kill the mutants of the evidence separator and the CPU sum

This commit is contained in:
2026-11-19 09:16:14 +01:00
parent a12710ebc4
commit d251d50472
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -210,7 +210,8 @@ class ChildShells(unittest.TestCase):
time.sleep(1)
used = self.shell_of(busy).cpu - before
self.assertGreater(used, 0.2 * (time.monotonic() - started))
self.assertLess(used, 1.5 * (time.monotonic() - started))
# Under 2 × the kernel's share alone, so a sum that counts one mode twice fails.
self.assertLess(used, 1.15 * (time.monotonic() - started))
processes = self.shell_of(busy).processes
self.assertEqual([line.split(" ", 4)[4] for line in processes], ["dd if=/dev/zero of=/dev/null bs=1M", "sleep 60"])
self.assertEqual([line.split(" ")[1] for line in processes], ["R", "S"])