]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: rm: fix a test that would sometimes hang
authorCollin Funk <collin.funk1@gmail.com>
Sat, 21 Mar 2026 19:19:21 +0000 (12:19 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 21 Mar 2026 19:19:21 +0000 (12:19 -0700)
* tests/rm/dash-hint.sh: Add the file name argument to grep, as I
intended when adding this test.

tests/rm/dash-hint.sh

index 249f348038a157efdb77b6c3993d0c4b82c3af42..0b72f8eefa4b2cee7632ef73fb0a99c745acb320 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ rm
 # Check that the hint is not shown when there isn't file named "-foo".
 returns_ 1 rm -foo > out 2> err || fail=1
 compare /dev/null out || fail=1
-grep 'to remove the file' && fail=1
+grep -F 'to remove the file' err && fail=1
 
 # Check that the hint is shown when there is file named "-foo".
 echo a > -foo || framework_failure_