1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

tests: rm: fix a test that would sometimes hang

* tests/rm/dash-hint.sh: Add the file name argument to grep, as I
intended when adding this test.
This commit is contained in:
Collin Funk
2026-03-21 12:19:21 -07:00
parent 30a5cbec0e
commit 6a37187a5f

View File

@@ -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_