From 0767fdaae34cd088ad12f081a2d95e298a43879b Mon Sep 17 00:00:00 2001 From: dana Date: Fri, 16 May 2025 12:06:39 -0500 Subject: 53626: tests: make `whence -s` test use `grep -c` instead of `wc -l` fixes broken test on platforms like macos where `wc -l` output is padded --- Test/B13whence.ztst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Test') diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst index 5132c2c04..384dcceeb 100644 --- a/Test/B13whence.ztst +++ b/Test/B13whence.ztst @@ -33,6 +33,6 @@ ) 1:whence deals with symlink loops gracefully - whence -s =sh(:P) | grep '.->' | wc -l -0:(workers/53524) whence -s doesn't print arrows for symlink-free paths + whence -s =sh(:P) | grep -c '.->' +1:(workers/53524) whence -s doesn't print arrows for symlink-free paths >0 -- cgit v1.2.3-70-g09d2