From 65ea32acfb8583302cbb09ea901288c2c966ded1 Mon Sep 17 00:00:00 2001 From: Xuz Date: Thu, 8 Oct 2026 16:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=AB=AF=E6=89=A7=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=EF=BC=9Adash=20=E4=BD=9C?= =?UTF-8?q?=E4=B8=BA=20sh=20=E6=97=B6=E5=85=81=E8=AE=B8=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E9=87=8C=E5=A4=9A=E4=B8=80=E8=A1=8C=20Terminated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- src/terminal/run_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/terminal/run_tests.rs b/src/terminal/run_tests.rs index 17f5a01..9f2d8c0 100644 --- a/src/terminal/run_tests.rs +++ b/src/terminal/run_tests.rs @@ -444,7 +444,11 @@ mod sh { // Several lines, and a command killed by a signal. let (found, _) = run_line("cd /\npwd\nkill -TERM $$"); - assert_eq!(found[1], Scanned::Output(b"/\n".to_vec())); + // dash, as the sh that waits for it, also says "Terminated" there. + let Scanned::Output(output) = &found[1] else { + panic!("{found:?}"); + }; + assert!(output.starts_with(b"/\n"), "{found:?}"); assert_eq!(found[2], Scanned::End(143)); let (found, _) = run_line("kill -INT $$"); assert_eq!(found.last(), Some(&Scanned::End(130)));