summaryrefslogtreecommitdiff
path: root/tests/in-eq-out-infloop
diff options
context:
space:
mode:
Diffstat (limited to 'tests/in-eq-out-infloop')
-rwxr-xr-xtests/in-eq-out-infloop9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/in-eq-out-infloop b/tests/in-eq-out-infloop
index 726accba..dcb7ac05 100755
--- a/tests/in-eq-out-infloop
+++ b/tests/in-eq-out-infloop
@@ -23,4 +23,13 @@ test $st = 2 || fail=1
compare err.exp err || fail=1
+# But with each of the following options it must not exit-2.
+for i in -q -m1 -l -L; do
+ timeout 10 grep $i 0 out >> out 2> err; st=$?
+ test $st = 2 && fail=1
+done
+
+timeout 10 grep -2 0 out >> out 2> err; st=$?
+test $st = 2 || fail=1
+
Exit $fail