From 97c58a6d80e455f2ebd7f7b2cfde49bd243a8fc7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 17 Nov 2026 12:19:12 -0600 Subject: [PATCH] Switch testcmd back to testing for one test that checks command name and gets confused by absolute path in the output for TEST_HOST. ("testing" runs command line as presented, searching the $PATH. "testcmd" adds absolute path to command as first argument, bypassing things like shell builtins.) --- tests/cat.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cat.test b/tests/cat.test index dd6dd728..e33ea71f 100755 --- a/tests/cat.test +++ b/tests/cat.test @@ -11,9 +11,9 @@ testcmd - '- && echo yes' 'oneyes\n' '' one tsc '' 'file1 file2' 'one\ntwo\n' testcmd '' '- file1' 'zero\none\n' '' 'zero\n' testcmd '' 'file1 -' 'one\nzero\n' '' 'zero\n' -tsc 'file1 notfound file2' \ - 'file1 notfound file2 2>stderr && echo ok ; cat stderr; rm stderr' \ - 'one\ntwo\ncat: notfound: No such file or directory\n' +testing 'file1 notfound file2' \ + 'cat file1 notfound file2 2>stderr && echo ok ; cat stderr; rm stderr' \ + 'one\ntwo\ncat: notfound: No such file or directory\n' '' '' tsc binary '"$C" > file1 && cmp "$C" file1 && echo yes' 'yes\n' testcmd '- file1' '- file1 | diff -a -U 0 - file1 | tail -n 1' \ '-hello\n' '' 'hello\n' -- 2.39.5