# timeout-control.ps1 -- RUN 2026-09-12T14:46:43.8060452-07:00 on HFENDULEAM # RAN IN powershell.exe 5.1.26100.8875 (Windows PowerShell -- the product's own invocation mode). # HARMLESS CHILDREN ONLY: powershell.exe processes that print a line and sleep. # NetSecurity is never imported, no firewall queried, no rule read. POSITIVE CONTROL: a child that finishes inside its deadline ok expected=False it is not reported as timed out ok expected=7 its real exit code survives ok expected=True its output is complete ok expected=True its output is preserved ok expected=False no kill was attempted ok expected=True the child is gone afterwards DEADLINE: a child that prints, then outlives its deadline ok expected=True it is reported as timed out ok expected=True a kill was attempted ok expected=True the kill is reported as succeeding ok expected=True the exit is CONFIRMED, not assumed ok expected=True no residual pid is reported ok expected=True THE CHILD IS ACTUALLY GONE ok expected=True output printed before the deadline is kept report: deadline expired; child 40972 was killed and confirmed exited DEADLINE: a silent child that outlives its deadline ok expected=True it is reported as timed out ok expected=True the exit is CONFIRMED ok expected=True THE CHILD IS ACTUALLY GONE report: deadline expired; child 50372 was killed and confirmed exited exit=-1 stdout_chars=0 complete=True REPORTING: the residual-process sentence is reachable at all ok expected=True a survivor is reported as STILL RUNNING ok expected=True and it names the pid ok expected=True and it names why the kill did not take HARNESS NEGATIVE CONTROL (declared wrong on purpose) ok a survivor must not read as a confirmed exit CASES=19 FAILED=0 TIMEOUT_CONTROL_PASS the deadline kills, confirms the death by pid, and keeps what the child had printed EXIT=0