From 6de66dd6be1e809f398477dfb2223341e38afce4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 14 Jan 2023 01:08:21 -0800 Subject: [PATCH] tests: omit duplicate tests * tests/skip-read: Omit duplicates. Reported by Bruno Haible in: https://lists.gnu.org/r/grep-devel/2023-01/msg00003.html --- tests/skip-read | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/skip-read b/tests/skip-read index 1e9e718..0006443 100755 --- a/tests/skip-read +++ b/tests/skip-read @@ -9,12 +9,10 @@ echo /dev/null >exp || framework_failure_ for opts in '-m0 y' '-f /dev/null' '-v ""'; do for matcher in '' -E -F; do - for file in /dev/null no-such-file; do - eval returns_ 1 grep $opts $matcher no-such-file > out || fail=1 - compare /dev/null out || fail=1 - eval returns_ 1 grep -l $opts $matcher /dev/null > out || fail=1 - compare /dev/null out || fail=1 - done + eval returns_ 1 grep $opts $matcher no-such-file > out || fail=1 + compare /dev/null out || fail=1 + eval returns_ 1 grep -l $opts $matcher /dev/null > out || fail=1 + compare /dev/null out || fail=1 eval returns_ 1 grep -L $opts $matcher /dev/null > out || fail=1 compare exp out || fail=1 eval returns_ 1 grep -L $opts $matcher /dev/null > /dev/null || fail=1