fix: 校验顺序改路径字典序(显示直观) + 测试时序稳定性

This commit is contained in:
AskaEth committed 2026-08-22 15:06:55 +08:00
1 parent 0b28d26a18
commit 2e505f6ea3
2 files changed
+10 -2

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
import re
import os
import subprocess
import time
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -328,6 +329,11 @@ def test_pause_sends_sigstop(tmp_path):
r.proc = p
r.pause()
assert r._paused is True
# SIGSTOP 异步生效, 等待状态变 T
for _ in range(20):
if _proc_state(p.pid) == "T":
break
time.sleep(0.05)
assert _proc_state(p.pid) == "T" # T = stopped
p.kill()
p.wait()